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

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

Issue 1455313002: [Reland][Extensions] Don't count bubble focus loss as acknowledgment (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Latest master 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/dev_mode_bubble_delegate.cc
diff --git a/chrome/browser/extensions/dev_mode_bubble_delegate.cc b/chrome/browser/extensions/dev_mode_bubble_delegate.cc
index 5f723de49a978ba6752768282ac02624d452ec09..1ac48c9192f0f73e7c6c3096eaf62600e4715055 100644
--- a/chrome/browser/extensions/dev_mode_bubble_delegate.cc
+++ b/chrome/browser/extensions/dev_mode_bubble_delegate.cc
@@ -19,13 +19,6 @@
namespace extensions {
-namespace {
-
-base::LazyInstance<std::set<Profile*> > g_shown_for_profiles =
- LAZY_INSTANCE_INITIALIZER;
-
-} // namespace
-
DevModeBubbleDelegate::DevModeBubbleDelegate(Profile* profile)
: ExtensionMessageBubbleController::Delegate(profile) {
}
@@ -105,13 +98,12 @@ void DevModeBubbleDelegate::LogAction(
action, ExtensionMessageBubbleController::ACTION_BOUNDARY);
}
-std::set<Profile*>* DevModeBubbleDelegate::GetProfileSet() {
- return g_shown_for_profiles.Pointer();
+const char* DevModeBubbleDelegate::GetKey() {
+ return "DevModeBubbleDelegate";
}
-// static
-void DevModeBubbleDelegate::ClearProfileListForTesting() {
- g_shown_for_profiles.Get().clear();
+bool DevModeBubbleDelegate::ClearProfileSetAfterAction() {
+ return false;
}
} // namespace extensions
« no previous file with comments | « chrome/browser/extensions/dev_mode_bubble_delegate.h ('k') | chrome/browser/extensions/extension_message_bubble_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698