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

Side by Side Diff: chrome/browser/extensions/dev_mode_bubble_controller.h

Issue 1125353002: Make extensions developer mode warning controllable by experiments (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix win compile problem with unreached code Created 5 years, 7 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/extensions/dev_mode_bubble_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_EXTENSIONS_DEV_MODE_BUBBLE_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_DEV_MODE_BUBBLE_CONTROLLER_H_
6 #define CHROME_BROWSER_EXTENSIONS_DEV_MODE_BUBBLE_CONTROLLER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_DEV_MODE_BUBBLE_CONTROLLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "chrome/browser/extensions/extension_message_bubble_controller.h" 10 #include "chrome/browser/extensions/extension_message_bubble_controller.h"
11 11
12 namespace extensions { 12 namespace extensions {
13 13
14 class Extension; 14 class Extension;
15 15
16 class DevModeBubbleController : public ExtensionMessageBubbleController { 16 class DevModeBubbleController : public ExtensionMessageBubbleController {
17 public: 17 public:
18 // Clears the list of profiles the bubble has been shown for. Should only be 18 // Clears the list of profiles the bubble has been shown for. Should only be
19 // used during testing. 19 // used during testing.
20 static void ClearProfileListForTesting(); 20 static void ClearProfileListForTesting();
21 21
22 // Returns true if the extension is considered a Developer Mode extension.
23 static bool IsDevModeExtension(const Extension* extension);
24
25 explicit DevModeBubbleController(Profile* profile); 22 explicit DevModeBubbleController(Profile* profile);
26 ~DevModeBubbleController() override; 23 ~DevModeBubbleController() override;
27 24
28 // Whether the controller knows of extensions to list in the bubble. Returns 25 // Whether the controller knows of extensions to list in the bubble. Returns
29 // true if so. 26 // true if so.
30 bool ShouldShow(); 27 bool ShouldShow();
31 28
32 // ExtensionMessageBubbleController methods. 29 // ExtensionMessageBubbleController methods.
33 void Show(ExtensionMessageBubble* bubble) override; 30 void Show(ExtensionMessageBubble* bubble) override;
34 31
35 private: 32 private:
36 // A weak pointer to the profile we are associated with. Not owned by us. 33 // A weak pointer to the profile we are associated with. Not owned by us.
37 Profile* profile_; 34 Profile* profile_;
38 35
39 DISALLOW_COPY_AND_ASSIGN(DevModeBubbleController); 36 DISALLOW_COPY_AND_ASSIGN(DevModeBubbleController);
40 }; 37 };
41 38
42 } // namespace extensions 39 } // namespace extensions
43 40
44 #endif // CHROME_BROWSER_EXTENSIONS_DEV_MODE_BUBBLE_CONTROLLER_H_ 41 #endif // CHROME_BROWSER_EXTENSIONS_DEV_MODE_BUBBLE_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/dev_mode_bubble_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698