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

Unified Diff: chrome/browser/ui/content_settings/content_setting_bubble_model_unittest.cc

Issue 7558024: Add UMA metrics for blocked plugins. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 9 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/ui/content_settings/content_setting_bubble_model_unittest.cc
diff --git a/chrome/browser/ui/content_settings/content_setting_bubble_model_unittest.cc b/chrome/browser/ui/content_settings/content_setting_bubble_model_unittest.cc
index 99ee7db2323c4f318d536e89f1df7a4e16cba224..0e6d56488e5a323795f314756b894f9669f0b4e4 100644
--- a/chrome/browser/ui/content_settings/content_setting_bubble_model_unittest.cc
+++ b/chrome/browser/ui/content_settings/content_setting_bubble_model_unittest.cc
@@ -49,7 +49,7 @@ TEST_F(ContentSettingBubbleModelTest, ImageRadios) {
TabSpecificContentSettings* content_settings =
contents_wrapper()->content_settings();
content_settings->OnContentBlocked(CONTENT_SETTINGS_TYPE_IMAGES,
- std::string());
+ std::string(), CONTENT_SETTING_BLOCK);
scoped_ptr<ContentSettingBubbleModel> content_setting_bubble_model(
ContentSettingBubbleModel::CreateContentSettingBubbleModel(
@@ -68,7 +68,7 @@ TEST_F(ContentSettingBubbleModelTest, Cookies) {
TabSpecificContentSettings* content_settings =
contents_wrapper()->content_settings();
content_settings->OnContentBlocked(CONTENT_SETTINGS_TYPE_COOKIES,
- std::string());
+ std::string(), CONTENT_SETTING_BLOCK);
scoped_ptr<ContentSettingBubbleModel> content_setting_bubble_model(
ContentSettingBubbleModel::CreateContentSettingBubbleModel(
@@ -87,7 +87,7 @@ TEST_F(ContentSettingBubbleModelTest, Plugins) {
TabSpecificContentSettings* content_settings =
contents_wrapper()->content_settings();
content_settings->OnContentBlocked(CONTENT_SETTINGS_TYPE_PLUGINS,
- std::string());
+ std::string(), CONTENT_SETTING_BLOCK);
scoped_ptr<ContentSettingBubbleModel> content_setting_bubble_model(
ContentSettingBubbleModel::CreateContentSettingBubbleModel(
@@ -130,9 +130,9 @@ TEST_F(ContentSettingBubbleModelTest, MultiplePlugins) {
TabSpecificContentSettings* content_settings =
contents_wrapper()->content_settings();
content_settings->OnContentBlocked(CONTENT_SETTINGS_TYPE_PLUGINS,
- fooPlugin);
+ fooPlugin, CONTENT_SETTING_BLOCK);
content_settings->OnContentBlocked(CONTENT_SETTINGS_TYPE_PLUGINS,
- barPlugin);
+ barPlugin, CONTENT_SETTING_BLOCK);
scoped_ptr<ContentSettingBubbleModel> content_setting_bubble_model(
ContentSettingBubbleModel::CreateContentSettingBubbleModel(

Powered by Google App Engine
This is Rietveld 408576698