Revert "Reland c91b178b07b0d - Delete dead signin code (SigninGlobalError)"
[chromium-blink-merge.git] / chrome / browser / extensions / dev_mode_bubble_controller.h
blob48246d248b6fc255318e276acf52b106106254cf
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_EXTENSIONS_DEV_MODE_BUBBLE_CONTROLLER_H_
6 #define CHROME_BROWSER_EXTENSIONS_DEV_MODE_BUBBLE_CONTROLLER_H_
8 #include <string>
10 #include "chrome/browser/extensions/extension_message_bubble_controller.h"
12 namespace extensions {
14 class Extension;
16 class DevModeBubbleController : public ExtensionMessageBubbleController {
17 public:
18 // Clears the list of profiles the bubble has been shown for. Should only be
19 // used during testing.
20 static void ClearProfileListForTesting();
22 explicit DevModeBubbleController(Browser* browser);
23 ~DevModeBubbleController() override;
25 // Whether the controller knows of extensions to list in the bubble. Returns
26 // true if so.
27 bool ShouldShow();
29 // ExtensionMessageBubbleController methods.
30 void Show(ExtensionMessageBubble* bubble) override;
32 private:
33 // A weak pointer to the profile we are associated with. Not owned by us.
34 Profile* profile_;
36 DISALLOW_COPY_AND_ASSIGN(DevModeBubbleController);
39 } // namespace extensions
41 #endif // CHROME_BROWSER_EXTENSIONS_DEV_MODE_BUBBLE_CONTROLLER_H_