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

Unified Diff: chrome/browser/prefs/incognito_mode_prefs.h

Issue 15859011: Don't show post extension install bubbles when incognito mode is forced. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: moved incognito_mode_prefs from another CL Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/prefs/incognito_mode_prefs.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/prefs/incognito_mode_prefs.h
diff --git a/chrome/browser/prefs/incognito_mode_prefs.h b/chrome/browser/prefs/incognito_mode_prefs.h
index 791e8655ce02a914477da5db2a831b112a1fce1e..3215311b8c7c8d3fe08bd665aad7243c87d11f52 100644
--- a/chrome/browser/prefs/incognito_mode_prefs.h
+++ b/chrome/browser/prefs/incognito_mode_prefs.h
@@ -9,6 +9,7 @@
class CommandLine;
class PrefService;
+class Profile;
namespace user_prefs {
class PrefRegistrySyncable;
@@ -54,6 +55,11 @@ class IncognitoModePrefs {
static bool ShouldLaunchIncognito(const CommandLine& command_line,
const PrefService* prefs);
+ // Returns true if |profile| can open a new Browser. This checks the incognito
+ // availability policies and verifies if the |profile| type is allowed to
+ // open new windows.
+ static bool CanOpenBrowser(Profile* profile);
+
private:
DISALLOW_IMPLICIT_CONSTRUCTORS(IncognitoModePrefs);
};
« no previous file with comments | « no previous file | chrome/browser/prefs/incognito_mode_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698