fix: settings not persisting across devtools loads (#33120)

* fix: settings not persisting across devtools loads

* chore: remove redundant RegisterPreference impl
This commit is contained in:
Shelley Vohr 2022-03-08 17:17:43 -08:00 committed by GitHub
parent 27527fe5ca
commit 373a905319
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 119 deletions

View file

@ -140,7 +140,7 @@ class InspectableWebContents
const std::string& browser_id,
const std::string& url) override;
void RegisterPreference(const std::string& name,
const RegisterOptions& options) override;
const RegisterOptions& options) override {}
void GetPreferences(DispatchCallback callback) override;
void GetPreference(DispatchCallback callback,
const std::string& name) override;
@ -198,9 +198,6 @@ class InspectableWebContents
void SendMessageAck(int request_id, const base::Value* arg1);
const char* GetDictionaryNameForSettingsName(const std::string& name) const;
const char* GetDictionaryNameForSyncedPrefs() const;
#if BUILDFLAG(ENABLE_ELECTRON_EXTENSIONS)
void AddDevToolsExtensionsToClient();
#endif