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

Unified Diff: chrome/browser/extensions/suspicious_extension_bubble_delegate.cc

Issue 1456213002: Revert of [Extensions] Don't count bubble dismissal from focus loss as acknowledgment (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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/extensions/suspicious_extension_bubble_delegate.cc
diff --git a/chrome/browser/extensions/suspicious_extension_bubble_delegate.cc b/chrome/browser/extensions/suspicious_extension_bubble_delegate.cc
index 33381d71da7f31cc01abf8d14a86307635343f76..c4b95ed334a4dc2daa6de8d7746c83cc7afd37c8 100644
--- a/chrome/browser/extensions/suspicious_extension_bubble_delegate.cc
+++ b/chrome/browser/extensions/suspicious_extension_bubble_delegate.cc
@@ -25,6 +25,9 @@
// Whether the user has been notified about extension being wiped out.
const char kWipeoutAcknowledged[] = "ack_wiped";
+
+base::LazyInstance<std::set<Profile*> > g_shown_for_profiles =
+ LAZY_INSTANCE_INITIALIZER;
} // namespace
@@ -129,8 +132,13 @@
action, ExtensionMessageBubbleController::ACTION_BOUNDARY);
}
-const char* SuspiciousExtensionBubbleDelegate::GetKey() {
- return "SuspiciousExtensionBubbleDelegate";
+std::set<Profile*>* SuspiciousExtensionBubbleDelegate::GetProfileSet() {
+ return g_shown_for_profiles.Pointer();
+}
+
+// static
+void SuspiciousExtensionBubbleDelegate::ClearProfileListForTesting() {
+ g_shown_for_profiles.Get().clear();
}
} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698