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

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

Issue 2623833005: Revert of Make extensions DSE persistent in browser prefs (Closed)
Patch Set: Created 3 years, 11 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
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 "url/gurl.h" 10 #include "url/gurl.h"
(...skipping 18 matching lines...) Expand all
29 29
30 // Indicates the user wants to restore a specific set of URLs. The URLs 30 // Indicates the user wants to restore a specific set of URLs. The URLs
31 // are contained in urls. 31 // are contained in urls.
32 URLS = 3, 32 URLS = 3,
33 }; 33 };
34 34
35 // For historical reasons the enum and value registered in the prefs don't 35 // For historical reasons the enum and value registered in the prefs don't
36 // line up. These are the values registered in prefs. 36 // line up. These are the values registered in prefs.
37 // The values are also recorded in Settings.StartupPageLoadSettings histogram, 37 // The values are also recorded in Settings.StartupPageLoadSettings histogram,
38 // so make sure to update histograms.xml if you change these. 38 // so make sure to update histograms.xml if you change these.
39 enum PrefValue { 39 static const int kPrefValueLast = 1;
40 kPrefValueLast = 1, 40 static const int kPrefValueURLs = 4;
41 kPrefValueURLs = 4, 41 static const int kPrefValueNewTab = 5;
42 kPrefValueNewTab = 5, 42 static const int kPrefValueMax = 6;
43 kPrefValueMax = 6,
44 };
45 43
46 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); 44 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
47 45
48 // Returns the default value for |type|. 46 // Returns the default value for |type|.
49 static Type GetDefaultStartupType(); 47 static Type GetDefaultStartupType();
50 48
51 // What should happen on startup for the specified profile. 49 // What should happen on startup for the specified profile.
52 static void SetStartupPref(Profile* profile, const SessionStartupPref& pref); 50 static void SetStartupPref(Profile* profile, const SessionStartupPref& pref);
53 static void SetStartupPref(PrefService* prefs, 51 static void SetStartupPref(PrefService* prefs,
54 const SessionStartupPref& pref); 52 const SessionStartupPref& pref);
(...skipping 17 matching lines...) Expand all
72 ~SessionStartupPref(); 70 ~SessionStartupPref();
73 71
74 // What to do on startup. 72 // What to do on startup.
75 Type type; 73 Type type;
76 74
77 // The URLs to restore. Only used if type == URLS. 75 // The URLs to restore. Only used if type == URLS.
78 std::vector<GURL> urls; 76 std::vector<GURL> urls;
79 }; 77 };
80 78
81 #endif // CHROME_BROWSER_PREFS_SESSION_STARTUP_PREF_H__ 79 #endif // CHROME_BROWSER_PREFS_SESSION_STARTUP_PREF_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698