Home
last modified time | relevance | path

Searched refs:SessionStartupPref (Results 1 – 11 of 11) sorted by relevance

/external/chromium/chrome/browser/prefs/
Dsession_startup_pref.cc27 int TypeToPrefValue(SessionStartupPref::Type type) { in TypeToPrefValue()
29 case SessionStartupPref::LAST: return kPrefValueLast; in TypeToPrefValue()
30 case SessionStartupPref::URLS: return kPrefValueURLs; in TypeToPrefValue()
36 SessionStartupPref::Type PrefValueToType(int pref_value) { in PrefValueToType()
38 case kPrefValueLast: return SessionStartupPref::LAST; in PrefValueToType()
39 case kPrefValueURLs: return SessionStartupPref::URLS; in PrefValueToType()
40 default: return SessionStartupPref::DEFAULT; in PrefValueToType()
47 void SessionStartupPref::RegisterUserPrefs(PrefService* prefs) { in RegisterUserPrefs()
54 void SessionStartupPref::SetStartupPref( in SetStartupPref()
56 const SessionStartupPref& pref) { in SetStartupPref()
[all …]
Dsession_startup_pref_unittest.cc16 SessionStartupPref::RegisterUserPrefs(pref_service_.get()); in SetUp()
28 SessionStartupPref result = in TEST_F()
29 SessionStartupPref::GetStartupPref(pref_service_.get()); in TEST_F()
47 SessionStartupPref result = in TEST_F()
48 SessionStartupPref::GetStartupPref(pref_service_.get()); in TEST_F()
51 SessionStartupPref override_test = in TEST_F()
52 SessionStartupPref(SessionStartupPref::URLS); in TEST_F()
54 SessionStartupPref::SetStartupPref(pref_service_.get(), override_test); in TEST_F()
56 result = SessionStartupPref::GetStartupPref(pref_service_.get()); in TEST_F()
Dsession_startup_pref.h18 struct SessionStartupPref { struct
34 static void SetStartupPref(Profile* profile, const SessionStartupPref& pref); argument
36 const SessionStartupPref& pref);
37 static SessionStartupPref GetStartupPref(Profile* profile);
38 static SessionStartupPref GetStartupPref(PrefService* prefs);
44 SessionStartupPref();
46 explicit SessionStartupPref(Type type);
48 ~SessionStartupPref();
Dbrowser_prefs.cc125 SessionStartupPref::RegisterUserPrefs(user_prefs); in RegisterUserPrefs()
/external/chromium/chrome/browser/
Ddefaults.cc17 const SessionStartupPref::Type kDefaultSessionStartupType =
18 SessionStartupPref::LAST;
52 const SessionStartupPref::Type kDefaultSessionStartupType =
53 SessionStartupPref::DEFAULT;
Ddefaults.h30 extern const SessionStartupPref::Type kDefaultSessionStartupType;
/external/chromium/chrome/browser/sessions/
Dsession_restore_browsertest.cc84 SessionStartupPref::SetStartupPref( in IN_PROC_BROWSER_TEST_F()
86 SessionStartupPref(SessionStartupPref::LAST)); in IN_PROC_BROWSER_TEST_F()
192 SessionStartupPref pref(SessionStartupPref::LAST); in IN_PROC_BROWSER_TEST_F()
193 SessionStartupPref::SetStartupPref(browser()->profile(), pref); in IN_PROC_BROWSER_TEST_F()
Dsession_service.cc492 SessionStartupPref pref = SessionStartupPref::GetStartupPref(profile()); in RestoreIfNecessary()
493 if (pref.type == SessionStartupPref::LAST) { in RestoreIfNecessary()
/external/chromium/chrome/browser/ui/webui/options/
Dbrowser_options_handler.cc312 const SessionStartupPref startup_pref = in UpdateStartupPages()
313 SessionStartupPref::GetStartupPref(profile->GetPrefs()); in UpdateStartupPages()
410 SessionStartupPref pref = SessionStartupPref::GetStartupPref(prefs); in SaveStartupPagesPref()
413 SessionStartupPref::SetStartupPref(prefs, pref); in SaveStartupPagesPref()
/external/chromium/chrome/browser/ui/
Dbrowser_init.cc361 SessionStartupPref GetSessionStartupPref(const CommandLine& command_line, in GetSessionStartupPref()
363 SessionStartupPref pref = SessionStartupPref::GetStartupPref(profile); in GetSessionStartupPref()
365 pref.type = SessionStartupPref::LAST; in GetSessionStartupPref()
367 pref.type == SessionStartupPref::LAST && in GetSessionStartupPref()
372 pref.type = SessionStartupPref::DEFAULT; in GetSessionStartupPref()
886 SessionStartupPref pref = GetSessionStartupPref(command_line_, profile_); in ProcessStartupURLs()
890 SessionStartupPref::DEFAULT) { in ProcessStartupURLs()
897 if (pref.type == SessionStartupPref::LAST) { in ProcessStartupURLs()
919 } else if (pref.type == SessionStartupPref::URLS && !pref.urls.empty()) { in ProcessStartupURLs()
924 } else if (pref.type == SessionStartupPref::DEFAULT && !tabs.empty()) { in ProcessStartupURLs()
/external/chromium/chrome/browser/net/
Dpredictor_api.cc540 SessionStartupPref tab_start_pref = in GetPredictedUrlListAtStartup()
541 SessionStartupPref::GetStartupPref(user_prefs); in GetPredictedUrlListAtStartup()
542 if (SessionStartupPref::URLS == tab_start_pref.type) { in GetPredictedUrlListAtStartup()