HomeSort by relevance Sort by last modified time
    Searched refs:SessionStartupPref (Results 1 - 25 of 31) sorted by null

1 2

  /external/chromium_org/chrome/browser/prefs/
session_startup_pref.h 21 struct SessionStartupPref {
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();
session_startup_pref.cc 33 // 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::Type SessionStartupPref::GetDefaultStartupType()
    [all...]
session_startup_pref_unittest.cc 16 // 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(SessionStartupPref::URLS)
    [all...]
pref_metrics_service.cc 33 const int kSessionStartupPrefValueMax = SessionStartupPref::kPrefValueMax;
107 if (restore_on_startup == SessionStartupPref::kPrefValueURLs) {
  /external/chromium_org/chrome/browser/sessions/
restore_on_startup_policy_handler_unittest.cc 71 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::kPrefValueNewTab))
    [all...]
restore_on_startup_policy_handler.cc 36 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:
session_data_deleter.cc 155 SessionStartupPref::Type startup_pref_type =
156 SessionStartupPref::GetDefaultStartupType();
158 SessionStartupPref::Type startup_pref_type =
165 startup_pref_type == SessionStartupPref::LAST));
better_session_restore_browsertest.cc 374 SessionStartupPref::SetStartupPref(
375 browser()->profile(), SessionStartupPref(SessionStartupPref::LAST));
668 SessionStartupPref::SetStartupPref(
669 browser()->profile(), SessionStartupPref(SessionStartupPref::DEFAULT));
session_restore_browsertest.cc 78 SessionStartupPref pref(SessionStartupPref::LAST);
79 SessionStartupPref::SetStartupPref(browser()->profile(), pref);
358 SessionStartupPref::SetStartupPref(
360 SessionStartupPref(SessionStartupPref::LAST));
    [all...]
  /external/chromium_org/chrome/browser/ui/startup/
startup_browser_creator_interactive_uitest.cc 51 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);
startup_browser_creator_browsertest.cc 199 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 pref2(SessionStartupPref::URLS)
    [all...]
startup_browser_creator.cc 354 SessionStartupPref StartupBrowserCreator::GetSessionStartupPref(
359 SessionStartupPref pref = SessionStartupPref::GetStartupPref(prefs);
372 // default is overridden with SessionStartupPref::DEFAULT so that first run
376 if (is_first_run && SessionStartupPref::TypeIsDefault(prefs))
377 pref.type = SessionStartupPref::DEFAULT;
382 // switch so do not set the session pref to SessionStartupPref::LAST for
387 pref.type = SessionStartupPref::LAST;
389 if (pref.type == SessionStartupPref::LAST &&
394 pref.type = SessionStartupPref::DEFAULT
    [all...]
startup_browser_creator.h 85 static SessionStartupPref GetSessionStartupPref(
startup_browser_creator_impl.cc 603 SessionStartupPref pref =
605 if (pref.type == SessionStartupPref::LAST)
607 else if (pref.type == SessionStartupPref::URLS)
609 else if (pref.type == SessionStartupPref::DEFAULT)
620 if (pref.type == SessionStartupPref::LAST) {
674 if (pref.type != SessionStartupPref::LAST &&
686 SessionStartupPref pref =
704 } else if (pref.type == SessionStartupPref::DEFAULT ||
710 } else if (pref.type == SessionStartupPref::URLS && !pref.urls.empty() &&
716 } else if (pref.type == SessionStartupPref::HOMEPAGE)
    [all...]
  /external/chromium_org/chrome/browser/translate/
translate_manager_browsertest.cc 32 SessionStartupPref pref(SessionStartupPref::LAST);
33 SessionStartupPref::SetStartupPref(browser()->profile(), pref);
  /external/chromium_org/chrome/browser/extensions/api/settings_overrides/
settings_overrides_browsertest.cc 59 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);
settings_overrides_api.cc 181 new base::FundamentalValue(SessionStartupPref::kPrefValueURLs));
  /external/chromium_org/chrome/browser/profile_resetter/
resettable_settings_snapshot.h 46 SessionStartupPref::Type startup_type() const { return startup_.type; }
88 SessionStartupPref startup_;
profile_resetter_unittest.cc 726 SessionStartupPref startup_pref(SessionStartupPref::LAST);
727 SessionStartupPref::SetStartupPref(prefs, startup_pref);
731 startup_pref = SessionStartupPref::GetStartupPref(prefs);
732 EXPECT_EQ(SessionStartupPref::URLS, startup_pref.type);
743 SessionStartupPref startup_pref(SessionStartupPref::URLS);
745 SessionStartupPref::SetStartupPref(prefs, startup_pref);
749 startup_pref = SessionStartupPref::GetStartupPref(prefs);
750 EXPECT_EQ(SessionStartupPref::GetDefaultStartupType(), startup_pref.type)
    [all...]
resettable_settings_snapshot.cc 58 : startup_(SessionStartupPref::GetStartupPref(profile)),
279 case SessionStartupPref::DEFAULT:
282 case SessionStartupPref::LAST:
286 case SessionStartupPref::URLS:
  /external/chromium_org/chrome/browser/ui/webui/options/
startup_pages_handler.cc 78 const SessionStartupPref startup_pref =
79 SessionStartupPref::GetStartupPref(profile->GetPrefs());
215 SessionStartupPref pref = SessionStartupPref::GetStartupPref(prefs);
219 pref.type = SessionStartupPref::DEFAULT;
221 SessionStartupPref::SetStartupPref(prefs, pref);
  /external/chromium_org/chrome/browser/profiles/
profile_impl.cc 584 SessionStartupPref::Type startup_pref_type =
585 SessionStartupPref::GetDefaultStartupType();
587 SessionStartupPref::Type startup_pref_type =
594 startup_pref_type == SessionStartupPref::LAST) {
    [all...]
  /external/chromium_org/chrome/browser/rlz/
rlz.cc 251 SessionStartupPref session_startup_prefs =
254 if (session_startup_prefs.type == SessionStartupPref::URLS) {
  /external/chromium_org/chrome/browser/lifetime/
browser_close_manager_browsertest.cc 242 SessionStartupPref::SetStartupPref(
243 browser()->profile(), SessionStartupPref(SessionStartupPref::LAST));
    [all...]
  /external/chromium_org/chrome/browser/performance_monitor/
performance_monitor_browsertest.cc 376 SessionStartupPref pref(SessionStartupPref::LAST);
377 SessionStartupPref::SetStartupPref(browser()->profile(), pref);

Completed in 862 milliseconds

1 2