Searched refs:SessionStartupPref (Results 1 - 25 of 31) sorted by relevance

12

/external/chromium_org/chrome/browser/prefs/
H A Dsession_startup_pref.h21 struct SessionStartupPref { struct
56 static void SetStartupPref(Profile* profile, const SessionStartupPref& pref);
58 const SessionStartupPref& pref);
59 static SessionStartupPref GetStartupPref(Profile* profile);
60 static SessionStartupPref GetStartupPref(PrefService* prefs);
78 // Converts an integer pref value to a SessionStartupPref::Type.
79 static SessionStartupPref::Type PrefValueToType(int pref_value);
81 explicit SessionStartupPref(Type type);
83 ~SessionStartupPref();
H A Dsession_startup_pref.cc33 // Converts a SessionStartupPref::Type to an integer written to prefs.
34 int TypeToPrefValue(SessionStartupPref::Type type) {
36 case SessionStartupPref::LAST: return SessionStartupPref::kPrefValueLast;
37 case SessionStartupPref::URLS: return SessionStartupPref::kPrefValueURLs;
38 default: return SessionStartupPref::kPrefValueNewTab;
52 void URLListToPref(const base::ListValue* url_list, SessionStartupPref* pref) {
66 void SessionStartupPref::RegisterProfilePrefs(
87 SessionStartupPref
303 SessionStartupPref::SessionStartupPref(Type type) : type(type) {} function in class:SessionStartupPref
[all...]
H A Dsession_startup_pref_unittest.cc16 // Unit tests for SessionStartupPref.
21 SessionStartupPref::RegisterProfilePrefs(registry());
27 // SessionStartupPref::MigrateMacDefaultPrefIfNecessary).
35 // On ChromeOS, the default SessionStartupPref is LAST.
56 SessionStartupPref result =
57 SessionStartupPref::GetStartupPref(pref_service_.get());
75 SessionStartupPref result =
76 SessionStartupPref::GetStartupPref(pref_service_.get());
79 SessionStartupPref override_test =
80 SessionStartupPref(SessionStartupPre
[all...]
H A Dpref_metrics_service.cc33 const int kSessionStartupPrefValueMax = SessionStartupPref::kPrefValueMax;
107 if (restore_on_startup == SessionStartupPref::kPrefValueURLs) {
/external/chromium_org/chrome/browser/sessions/
H A Drestore_on_startup_policy_handler_unittest.cc71 int impossible_value = SessionStartupPref::kPrefValueHomePage +
72 SessionStartupPref::kPrefValueLast +
73 SessionStartupPref::kPrefValueURLs +
74 SessionStartupPref::kPrefValueNewTab;
90 new base::FundamentalValue(SessionStartupPref::kPrefValueHomePage));
103 new base::FundamentalValue(SessionStartupPref::kPrefValueLast));
122 new base::FundamentalValue(SessionStartupPref::kPrefValueLast));
139 new base::FundamentalValue(SessionStartupPref::kPrefValueLast));
149 new base::FundamentalValue(SessionStartupPref::kPrefValueURLs));
159 new base::FundamentalValue(SessionStartupPref
[all...]
H A Drestore_on_startup_policy_handler.cc36 if (restore_on_startup == SessionStartupPref::kPrefValueHomePage)
60 SessionStartupPref::kPrefValueNewTab);
72 SessionStartupPref::kPrefValueURLs);
89 case SessionStartupPref::kPrefValueHomePage:
92 case SessionStartupPref::kPrefValueLast: {
117 case SessionStartupPref::kPrefValueURLs:
118 case SessionStartupPref::kPrefValueNewTab:
H A Dsession_data_deleter.cc150 SessionStartupPref::Type startup_pref_type =
151 SessionStartupPref::GetDefaultStartupType();
153 SessionStartupPref::Type startup_pref_type =
160 startup_pref_type == SessionStartupPref::LAST));
H A Dbetter_session_restore_browsertest.cc374 SessionStartupPref::SetStartupPref(
375 browser()->profile(), SessionStartupPref(SessionStartupPref::LAST));
668 SessionStartupPref::SetStartupPref(
669 browser()->profile(), SessionStartupPref(SessionStartupPref::DEFAULT));
H A Dsession_restore_browsertest.cc78 SessionStartupPref pref(SessionStartupPref::LAST);
79 SessionStartupPref::SetStartupPref(browser()->profile(), pref);
358 SessionStartupPref::SetStartupPref(
360 SessionStartupPref(SessionStartupPref::LAST));
/external/chromium_org/chrome/browser/ui/startup/
H A Dstartup_browser_creator_interactive_uitest.cc51 SessionStartupPref pref_urls(SessionStartupPref::URLS);
55 SessionStartupPref::SetStartupPref(profile_1, pref_urls);
56 SessionStartupPref::SetStartupPref(profile_2, pref_urls);
57 SessionStartupPref::SetStartupPref(profile_3, pref_urls);
58 SessionStartupPref::SetStartupPref(profile_4, pref_urls);
H A Dstartup_browser_creator_browsertest.cc199 SessionStartupPref pref(SessionStartupPref::URLS);
201 SessionStartupPref::SetStartupPref(browser()->profile(), pref);
247 SessionStartupPref pref(SessionStartupPref::URLS);
249 SessionStartupPref::SetStartupPref(browser()->profile(), pref);
612 SessionStartupPref pref1(SessionStartupPref::URLS);
614 SessionStartupPref::SetStartupPref(default_profile, pref1);
615 SessionStartupPref pref
[all...]
H A Dstartup_browser_creator.cc351 SessionStartupPref StartupBrowserCreator::GetSessionStartupPref(
356 SessionStartupPref pref = SessionStartupPref::GetStartupPref(prefs);
370 // default is overridden with SessionStartupPref::DEFAULT so that first run
374 if (is_first_run && SessionStartupPref::TypeIsDefault(prefs))
375 pref.type = SessionStartupPref::DEFAULT;
380 // switch so do not set the session pref to SessionStartupPref::LAST for
385 pref.type = SessionStartupPref::LAST;
387 if (pref.type == SessionStartupPref::LAST &&
392 pref.type = SessionStartupPref
[all...]
H A Dstartup_browser_creator_impl.cc591 SessionStartupPref pref =
593 if (pref.type == SessionStartupPref::LAST)
595 else if (pref.type == SessionStartupPref::URLS)
597 else if (pref.type == SessionStartupPref::DEFAULT)
608 if (pref.type == SessionStartupPref::LAST) {
655 if (pref.type != SessionStartupPref::LAST &&
667 SessionStartupPref pref =
685 } else if (pref.type == SessionStartupPref::DEFAULT ||
691 } else if (pref.type == SessionStartupPref::URLS && !pref.urls.empty() &&
697 } else if (pref.type == SessionStartupPref
[all...]
H A Dstartup_browser_creator.h85 static SessionStartupPref GetSessionStartupPref(
/external/chromium_org/chrome/browser/translate/
H A Dtranslate_manager_browsertest.cc34 SessionStartupPref pref(SessionStartupPref::LAST);
35 SessionStartupPref::SetStartupPref(browser()->profile(), pref);
/external/chromium_org/chrome/browser/extensions/api/settings_overrides/
H A Dsettings_overrides_browsertest.cc59 SessionStartupPref startup_pref(SessionStartupPref::LAST);
61 SessionStartupPref::SetStartupPref(prefs, startup_pref);
79 startup_pref = SessionStartupPref::GetStartupPref(prefs);
80 EXPECT_EQ(SessionStartupPref::URLS, startup_pref.type);
116 startup_pref = SessionStartupPref::GetStartupPref(prefs);
117 EXPECT_EQ(SessionStartupPref::LAST, startup_pref.type);
H A Dsettings_overrides_api.cc182 new base::FundamentalValue(SessionStartupPref::kPrefValueURLs));
/external/chromium_org/chrome/browser/profile_resetter/
H A Dresettable_settings_snapshot.h47 SessionStartupPref::Type startup_type() const { return startup_.type; }
91 SessionStartupPref startup_;
H A Dprofile_resetter_unittest.cc721 SessionStartupPref startup_pref(SessionStartupPref::LAST);
722 SessionStartupPref::SetStartupPref(prefs, startup_pref);
726 startup_pref = SessionStartupPref::GetStartupPref(prefs);
727 EXPECT_EQ(SessionStartupPref::URLS, startup_pref.type);
738 SessionStartupPref startup_pref(SessionStartupPref::URLS);
740 SessionStartupPref::SetStartupPref(prefs, startup_pref);
744 startup_pref = SessionStartupPref::GetStartupPref(prefs);
745 EXPECT_EQ(SessionStartupPref
[all...]
H A Dresettable_settings_snapshot.cc60 : startup_(SessionStartupPref::GetStartupPref(profile)),
283 case SessionStartupPref::DEFAULT:
286 case SessionStartupPref::LAST:
290 case SessionStartupPref::URLS:
/external/chromium_org/chrome/browser/ui/webui/options/
H A Dstartup_pages_handler.cc85 const SessionStartupPref startup_pref =
86 SessionStartupPref::GetStartupPref(profile->GetPrefs());
223 SessionStartupPref pref = SessionStartupPref::GetStartupPref(prefs);
227 pref.type = SessionStartupPref::DEFAULT;
229 SessionStartupPref::SetStartupPref(prefs, pref);
/external/chromium_org/chrome/browser/prefs/tracked/
H A Dpref_hash_browsertest.cc518 SessionStartupPref::URLS);
592 SessionStartupPref::URLS);
620 SessionStartupPref::URLS);
797 SessionStartupPref::LAST);
/external/chromium_org/chrome/browser/rlz/
H A Drlz.cc251 SessionStartupPref session_startup_prefs =
254 if (session_startup_prefs.type == SessionStartupPref::URLS) {
/external/chromium_org/chrome/browser/profiles/
H A Dprofile_impl.cc614 SessionStartupPref::Type startup_pref_type =
615 SessionStartupPref::GetDefaultStartupType();
617 SessionStartupPref::Type startup_pref_type =
624 startup_pref_type == SessionStartupPref::LAST) {
/external/chromium_org/chrome/browser/lifetime/
H A Dbrowser_close_manager_browsertest.cc242 SessionStartupPref::SetStartupPref(
243 browser()->profile(), SessionStartupPref(SessionStartupPref::LAST));

Completed in 340 milliseconds

12