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

Unified Diff: chrome/browser/ui/webui/options/website_settings_handler.h

Issue 543983005: Add a dropdown to change the default content setting to the Website Settings page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix CrOS build error. Created 6 years, 3 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/ui/webui/options/website_settings_handler.h
diff --git a/chrome/browser/ui/webui/options/website_settings_handler.h b/chrome/browser/ui/webui/options/website_settings_handler.h
index fd8382965d5fede9b4f6dc06b0057e49de04ba73..aa6d5c069765a6c8c117e365ad34ccf5f0b92d6b 100644
--- a/chrome/browser/ui/webui/options/website_settings_handler.h
+++ b/chrome/browser/ui/webui/options/website_settings_handler.h
@@ -78,6 +78,12 @@ class WebsiteSettingsHandler : public content_settings::Observer,
// Deletes the local storage and repopulates the page.
void HandleDeleteLocalStorage(const base::ListValue* args);
+ // Populates the default setting drop down on the single site edit page.
+ void HandleUpdateDefaultSetting(const base::ListValue* args);
+
+ // Sets the default setting for the lat used content setting to |args|.
+ void HandleSetDefaultSetting(const base::ListValue* args);
+
// Closes all tabs and app windows which have the same origin as the selected
// page.
void HandleStopOrigin(const base::ListValue* args);
@@ -111,6 +117,11 @@ class WebsiteSettingsHandler : public content_settings::Observer,
// Updates the page with the last settings used.
void Update();
+ // Gets the default setting in string form. If |provider_id| is not NULL, the
+ // id of the provider which provided the default setting is assigned to it.
+ std::string GetSettingDefaultFromModel(ContentSettingsType type,
+ std::string* provider_id);
+
// Returns the base URL for websites, or the app name for Chrome App URLs.
const std::string& GetReadableName(const GURL& site_url);

Powered by Google App Engine
This is Rietveld 408576698