Searched refs:SessionStartupPref (Results 1 – 11 of 11) sorted by relevance
27 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 …]
16 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()
18 struct SessionStartupPref { struct34 static void SetStartupPref(Profile* profile, const SessionStartupPref& pref); argument36 const SessionStartupPref& pref);37 static SessionStartupPref GetStartupPref(Profile* profile);38 static SessionStartupPref GetStartupPref(PrefService* prefs);44 SessionStartupPref();46 explicit SessionStartupPref(Type type);48 ~SessionStartupPref();
125 SessionStartupPref::RegisterUserPrefs(user_prefs); in RegisterUserPrefs()
17 const SessionStartupPref::Type kDefaultSessionStartupType =18 SessionStartupPref::LAST;52 const SessionStartupPref::Type kDefaultSessionStartupType =53 SessionStartupPref::DEFAULT;
30 extern const SessionStartupPref::Type kDefaultSessionStartupType;
84 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()
492 SessionStartupPref pref = SessionStartupPref::GetStartupPref(profile()); in RestoreIfNecessary()493 if (pref.type == SessionStartupPref::LAST) { in RestoreIfNecessary()
312 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()
361 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()
540 SessionStartupPref tab_start_pref = in GetPredictedUrlListAtStartup()541 SessionStartupPref::GetStartupPref(user_prefs); in GetPredictedUrlListAtStartup()542 if (SessionStartupPref::URLS == tab_start_pref.type) { in GetPredictedUrlListAtStartup()