Chromium Code Reviews| 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..86e11f809d7f877a0f1eb42c415a54fe66d05165 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. |
|
Peter Kasting
2017/02/08 01:00:03
Nit: testing
kylix_rd
2017/02/10 22:47:48
Done.
|
| + 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; |