Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3373)

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 438843002: Delete code for inspector preferences. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix build. Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chrome_content_browser_client.cc
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
index 61fd30900a99b4efb1a1fa67bb249eea2b2548a5..0051615811b1696cc3a76ad100cbe9975a9ceebb 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -2145,19 +2145,6 @@ void ChromeContentBrowserClient::OverrideWebkitPrefs(
prefs->GetBoolean(prefs::kWebKitDomPasteEnabled);
web_prefs->shrinks_standalone_images_to_fit =
prefs->GetBoolean(prefs::kWebKitShrinksStandaloneImagesToFit);
- const base::DictionaryValue* inspector_settings =
- prefs->GetDictionary(prefs::kWebKitInspectorSettings);
- if (inspector_settings) {
- for (base::DictionaryValue::Iterator iter(*inspector_settings);
- !iter.IsAtEnd();
- iter.Advance()) {
- std::string value;
- if (iter.value().GetAsString(&value)) {
- web_prefs->inspector_settings.push_back(
- std::make_pair(iter.key(), value));
- }
- }
- }
web_prefs->tabs_to_links = prefs->GetBoolean(prefs::kWebkitTabsToLinks);
if (!prefs->GetBoolean(prefs::kWebKitJavascriptEnabled))
@@ -2217,18 +2204,6 @@ void ChromeContentBrowserClient::OverrideWebkitPrefs(
extra_parts_[i]->OverrideWebkitPrefs(rvh, url, web_prefs);
}
-void ChromeContentBrowserClient::UpdateInspectorSetting(
- RenderViewHost* rvh, const std::string& key, const std::string& value) {
- content::BrowserContext* browser_context =
- rvh->GetProcess()->GetBrowserContext();
- DictionaryPrefUpdate update(
- Profile::FromBrowserContext(browser_context)->GetPrefs(),
- prefs::kWebKitInspectorSettings);
- base::DictionaryValue* inspector_settings = update.Get();
- inspector_settings->SetWithoutPathExpansion(key,
- new base::StringValue(value));
-}
-
void ChromeContentBrowserClient::BrowserURLHandlerCreated(
BrowserURLHandler* handler) {
for (size_t i = 0; i < extra_parts_.size(); ++i)
« no previous file with comments | « chrome/browser/chrome_content_browser_client.h ('k') | chrome/browser/devtools/devtools_sanity_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698