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

Unified Diff: chrome/browser/ui/content_settings/content_setting_image_model.h

Issue 2668833003: DialogBrowserTest implementation to invoke Content settings bubble dialogs. (Closed)
Patch Set: More nits addressed Created 3 years, 10 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/content_settings/content_setting_image_model.h
diff --git a/chrome/browser/ui/content_settings/content_setting_image_model.h b/chrome/browser/ui/content_settings/content_setting_image_model.h
index ded59c1681d84d78ee254c8a83433136f2e908d3..c6e16a35051e03cfd9d9dd3192d44fd0c85f1660 100644
--- a/chrome/browser/ui/content_settings/content_setting_image_model.h
+++ b/chrome/browser/ui/content_settings/content_setting_image_model.h
@@ -31,6 +31,11 @@ class ContentSettingImageModel {
static std::vector<std::unique_ptr<ContentSettingImageModel>>
GenerateContentSettingImageModels();
+ // Returns the corresponding index into the above vector for the given
+ // ContentSettingsType. For testing.
+ static size_t GetContentSettingImageModelIndexForTesting(
+ ContentSettingsType content_type);
+
// Notifies this model that its setting might have changed and it may need to
// update its visibility, icon and tooltip.
virtual void UpdateFromWebContents(content::WebContents* web_contents) = 0;

Powered by Google App Engine
This is Rietveld 408576698