/external/chromium/chrome/browser/prefs/ |
session_startup_pref.h | 18 struct SessionStartupPref { 34 static void SetStartupPref(Profile* profile, const SessionStartupPref& pref); 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();
|
session_startup_pref.cc | 26 // Converts a SessionStartupPref::Type to an integer written to prefs. 27 int TypeToPrefValue(SessionStartupPref::Type type) { 29 case SessionStartupPref::LAST: return kPrefValueLast; 30 case SessionStartupPref::URLS: return kPrefValueURLs; 35 // Converts an integer pref value to a SessionStartupPref::Type. 36 SessionStartupPref::Type PrefValueToType(int pref_value) { 38 case kPrefValueLast: return SessionStartupPref::LAST; 39 case kPrefValueURLs: return SessionStartupPref::URLS; 40 default: return SessionStartupPref::DEFAULT; 47 void SessionStartupPref::RegisterUserPrefs(PrefService* prefs) [all...] |
session_startup_pref_unittest.cc | 11 // Unit tests for SessionStartupPref. 16 SessionStartupPref::RegisterUserPrefs(pref_service_.get()); 28 SessionStartupPref result = 29 SessionStartupPref::GetStartupPref(pref_service_.get()); 47 SessionStartupPref result = 48 SessionStartupPref::GetStartupPref(pref_service_.get()); 51 SessionStartupPref override_test = 52 SessionStartupPref(SessionStartupPref::URLS); 54 SessionStartupPref::SetStartupPref(pref_service_.get(), override_test) [all...] |
/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...] |
/external/chromium/chrome/browser/ |
defaults.cc | 17 const SessionStartupPref::Type kDefaultSessionStartupType = 18 SessionStartupPref::LAST; 52 const SessionStartupPref::Type kDefaultSessionStartupType = 53 SessionStartupPref::DEFAULT;
|
defaults.h | 30 extern const SessionStartupPref::Type kDefaultSessionStartupType;
|
/external/chromium_org/chrome/browser/sessions/ |
restore_on_startup_policy_handler_unittest.cc | 70 int impossible_value = SessionStartupPref::kPrefValueHomePage + 71 SessionStartupPref::kPrefValueLast + 72 SessionStartupPref::kPrefValueURLs + 73 SessionStartupPref::kPrefValueNewTab; 89 new base::FundamentalValue(SessionStartupPref::kPrefValueHomePage)); 102 new base::FundamentalValue(SessionStartupPref::kPrefValueLast)); 120 new base::FundamentalValue(SessionStartupPref::kPrefValueLast)); 136 new base::FundamentalValue(SessionStartupPref::kPrefValueLast)); 146 new base::FundamentalValue(SessionStartupPref::kPrefValueURLs)); 156 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)); 671 SessionStartupPref::SetStartupPref( 672 browser()->profile(), SessionStartupPref(SessionStartupPref::DEFAULT));
|
/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 | 351 SessionStartupPref StartupBrowserCreator::GetSessionStartupPref( 356 SessionStartupPref pref = SessionStartupPref::GetStartupPref(prefs); 369 // default is overridden with SessionStartupPref::DEFAULT so that first run 373 if (is_first_run && SessionStartupPref::TypeIsDefault(prefs)) 374 pref.type = SessionStartupPref::DEFAULT; 379 // switch so do not set the session pref to SessionStartupPref::LAST for 384 pref.type = SessionStartupPref::LAST; 386 if (pref.type == SessionStartupPref::LAST && 391 pref.type = SessionStartupPref::DEFAULT [all...] |
startup_browser_creator.h | 87 static SessionStartupPref GetSessionStartupPref(
|
startup_browser_creator_impl.cc | 647 SessionStartupPref pref = 649 if (pref.type == SessionStartupPref::LAST) 651 else if (pref.type == SessionStartupPref::URLS) 653 else if (pref.type == SessionStartupPref::DEFAULT) 664 if (pref.type == SessionStartupPref::LAST) { 718 if (pref.type != SessionStartupPref::LAST && 730 SessionStartupPref pref = 748 } else if (pref.type == SessionStartupPref::DEFAULT || 754 } else if (pref.type == SessionStartupPref::URLS && !pref.urls.empty() && 760 } else if (pref.type == SessionStartupPref::HOMEPAGE) [all...] |
/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); 75 startup_pref = SessionStartupPref::GetStartupPref(prefs); 76 EXPECT_EQ(SessionStartupPref::URLS, startup_pref.type); 111 startup_pref = SessionStartupPref::GetStartupPref(prefs); 112 EXPECT_EQ(SessionStartupPref::LAST, startup_pref.type);
|
/external/chromium_org/chrome/browser/profile_resetter/ |
resettable_settings_snapshot.h | 38 SessionStartupPref::Type startup_type() const { return startup_.type; } 63 SessionStartupPref startup_;
|
profile_resetter_unittest.cc | 581 SessionStartupPref startup_pref(SessionStartupPref::LAST); 582 SessionStartupPref::SetStartupPref(prefs, startup_pref); 586 startup_pref = SessionStartupPref::GetStartupPref(prefs); 587 EXPECT_EQ(SessionStartupPref::URLS, startup_pref.type); 598 SessionStartupPref startup_pref(SessionStartupPref::URLS); 600 SessionStartupPref::SetStartupPref(prefs, startup_pref); 604 startup_pref = SessionStartupPref::GetStartupPref(prefs); 605 EXPECT_EQ(SessionStartupPref::GetDefaultStartupType(), startup_pref.type) [all...] |
resettable_settings_snapshot.cc | 51 : startup_(SessionStartupPref::GetStartupPref(profile)) { 214 case SessionStartupPref::DEFAULT: 217 case SessionStartupPref::LAST: 221 case SessionStartupPref::URLS:
|
/external/chromium/chrome/browser/sessions/ |
session_restore_browsertest.cc | 84 SessionStartupPref::SetStartupPref( 86 SessionStartupPref(SessionStartupPref::LAST)); 192 SessionStartupPref pref(SessionStartupPref::LAST); 193 SessionStartupPref::SetStartupPref(browser()->profile(), pref);
|
/external/chromium_org/chrome/browser/ui/webui/options/ |
startup_pages_handler.cc | 77 const SessionStartupPref startup_pref = 78 SessionStartupPref::GetStartupPref(profile->GetPrefs()); 208 SessionStartupPref pref = SessionStartupPref::GetStartupPref(prefs); 212 pref.type = SessionStartupPref::DEFAULT; 214 SessionStartupPref::SetStartupPref(prefs, pref);
|
/external/chromium/chrome/browser/ui/webui/options/ |
browser_options_handler.cc | 312 const SessionStartupPref startup_pref = 313 SessionStartupPref::GetStartupPref(profile->GetPrefs()); 410 SessionStartupPref pref = SessionStartupPref::GetStartupPref(prefs); 413 SessionStartupPref::SetStartupPref(prefs, pref);
|
/external/chromium/chrome/browser/ui/ |
browser_init.cc | 361 SessionStartupPref GetSessionStartupPref(const CommandLine& command_line, 363 SessionStartupPref pref = SessionStartupPref::GetStartupPref(profile); 365 pref.type = SessionStartupPref::LAST; 367 pref.type == SessionStartupPref::LAST && 372 pref.type = SessionStartupPref::DEFAULT; 886 SessionStartupPref pref = GetSessionStartupPref(command_line_, profile_); 890 SessionStartupPref::DEFAULT) { 897 if (pref.type == SessionStartupPref::LAST) { 919 } else if (pref.type == SessionStartupPref::URLS && !pref.urls.empty()) [all...] |