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

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

Issue 23557004: Save password bubble pops up automatically (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Readding UpdatePostLayout Created 7 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/content_settings/content_setting_image_model.cc
diff --git a/chrome/browser/ui/content_settings/content_setting_image_model.cc b/chrome/browser/ui/content_settings/content_setting_image_model.cc
index 764e1c91ee54caacb969d8722fec852a1f8bee24..67408b2848b1547973fc96f286dc57c9d3928355 100644
--- a/chrome/browser/ui/content_settings/content_setting_image_model.cc
+++ b/chrome/browser/ui/content_settings/content_setting_image_model.cc
@@ -64,6 +64,7 @@ class ContentSettingSavePasswordImageModel : public ContentSettingImageModel {
ContentSettingSavePasswordImageModel();
virtual void UpdateFromWebContents(WebContents* web_contents) OVERRIDE;
+ virtual bool ShouldShowBubbleOnBlockage();
Peter Kasting 2013/09/04 20:59:11 OVERRIDE
npentrel 2013/09/04 21:50:18 Done.
};
namespace {
@@ -233,6 +234,10 @@ void ContentSettingSavePasswordImageModel::UpdateFromWebContents(
}
}
+bool ContentSettingSavePasswordImageModel::ShouldShowBubbleOnBlockage() {
+ return true;
+}
+
ContentSettingMediaImageModel::ContentSettingMediaImageModel(
ContentSettingsType type)
: ContentSettingImageModel(type) {
@@ -377,6 +382,10 @@ ContentSettingImageModel::ContentSettingImageModel(
explanatory_string_id_(0) {
}
+bool ContentSettingImageModel::ShouldShowBubbleOnBlockage() {
+ return false;
+}
+
// static
ContentSettingImageModel*
ContentSettingImageModel::CreateContentSettingImageModel(

Powered by Google App Engine
This is Rietveld 408576698