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

Unified Diff: chrome/browser/extensions/dev_mode_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/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 1ac48c9192f0f73e7c6c3096eaf62600e4715055..5f723de49a978ba6752768282ac02624d452ec09 100644
--- a/chrome/browser/extensions/dev_mode_bubble_delegate.cc
+++ b/chrome/browser/extensions/dev_mode_bubble_delegate.cc
@@ -18,6 +18,13 @@
#include "ui/base/l10n/l10n_util.h"
namespace extensions {
+
+namespace {
+
+base::LazyInstance<std::set<Profile*> > g_shown_for_profiles =
+ LAZY_INSTANCE_INITIALIZER;
+
+} // namespace
DevModeBubbleDelegate::DevModeBubbleDelegate(Profile* profile)
: ExtensionMessageBubbleController::Delegate(profile) {
@@ -98,12 +105,13 @@
action, ExtensionMessageBubbleController::ACTION_BOUNDARY);
}
-const char* DevModeBubbleDelegate::GetKey() {
- return "DevModeBubbleDelegate";
+std::set<Profile*>* DevModeBubbleDelegate::GetProfileSet() {
+ return g_shown_for_profiles.Pointer();
}
-bool DevModeBubbleDelegate::ClearProfileSetAfterAction() {
- return false;
+// static
+void DevModeBubbleDelegate::ClearProfileListForTesting() {
+ g_shown_for_profiles.Get().clear();
}
} // 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