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

Side by Side Diff: chrome/browser/prefs/session_startup_pref.h

Issue 11493003: Remove the protector service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix implicit ExtensionSystem -> TemplateURLService dependency Created 8 years 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/prefs/browser_prefs.cc ('k') | chrome/browser/prefs/session_startup_pref.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_PREFS_SESSION_STARTUP_PREF_H__ 5 #ifndef CHROME_BROWSER_PREFS_SESSION_STARTUP_PREF_H__
6 #define CHROME_BROWSER_PREFS_SESSION_STARTUP_PREF_H__ 6 #define CHROME_BROWSER_PREFS_SESSION_STARTUP_PREF_H__
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "googleurl/src/gurl.h" 10 #include "googleurl/src/gurl.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 // Whether the startup type and URLs are managed via policy. 64 // Whether the startup type and URLs are managed via policy.
65 static bool TypeIsManaged(PrefService* prefs); 65 static bool TypeIsManaged(PrefService* prefs);
66 static bool URLsAreManaged(PrefService* prefs); 66 static bool URLsAreManaged(PrefService* prefs);
67 67
68 // Whether the startup type has not been overridden from its default. 68 // Whether the startup type has not been overridden from its default.
69 static bool TypeIsDefault(PrefService* prefs); 69 static bool TypeIsDefault(PrefService* prefs);
70 70
71 // Converts an integer pref value to a SessionStartupPref::Type. 71 // Converts an integer pref value to a SessionStartupPref::Type.
72 static SessionStartupPref::Type PrefValueToType(int pref_value); 72 static SessionStartupPref::Type PrefValueToType(int pref_value);
73 73
74 // Returns |true| if a change to startup type or URLS was detected by
75 // ProtectorService.
76 static bool DidStartupPrefChange(Profile* profile);
77
78 // Returns the protected backup of startup type and URLS.
79 static SessionStartupPref GetStartupPrefBackup(Profile* profile);
80
81 explicit SessionStartupPref(Type type); 74 explicit SessionStartupPref(Type type);
82 75
83 ~SessionStartupPref(); 76 ~SessionStartupPref();
84 77
85 // What to do on startup. 78 // What to do on startup.
86 Type type; 79 Type type;
87 80
88 // The URLs to restore. Only used if type == URLS. 81 // The URLs to restore. Only used if type == URLS.
89 std::vector<GURL> urls; 82 std::vector<GURL> urls;
90 }; 83 };
91 84
92 #endif // CHROME_BROWSER_PREFS_SESSION_STARTUP_PREF_H__ 85 #endif // CHROME_BROWSER_PREFS_SESSION_STARTUP_PREF_H__
OLDNEW
« no previous file with comments | « chrome/browser/prefs/browser_prefs.cc ('k') | chrome/browser/prefs/session_startup_pref.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698