/external/chromium_org/chrome/browser/prefs/ |
H A D | session_startup_pref.h | 21 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 D | 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 303 SessionStartupPref::SessionStartupPref(Type type) : type(type) {} function in class:SessionStartupPref [all...] |
H A D | 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(SessionStartupPre [all...] |
H A D | pref_metrics_service.cc | 33 const int kSessionStartupPrefValueMax = SessionStartupPref::kPrefValueMax; 107 if (restore_on_startup == SessionStartupPref::kPrefValueURLs) {
|
/external/chromium_org/chrome/browser/sessions/ |
H A D | 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 [all...] |
H A D | 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:
|
H A D | session_data_deleter.cc | 150 SessionStartupPref::Type startup_pref_type = 151 SessionStartupPref::GetDefaultStartupType(); 153 SessionStartupPref::Type startup_pref_type = 160 startup_pref_type == SessionStartupPref::LAST));
|
H A D | better_session_restore_browsertest.cc | 374 SessionStartupPref::SetStartupPref( 375 browser()->profile(), SessionStartupPref(SessionStartupPref::LAST)); 668 SessionStartupPref::SetStartupPref( 669 browser()->profile(), SessionStartupPref(SessionStartupPref::DEFAULT));
|
H A D | session_restore_browsertest.cc | 78 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 D | 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);
|
H A D | 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 pref [all...] |
H A D | startup_browser_creator.cc | 351 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 D | startup_browser_creator_impl.cc | 591 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 D | startup_browser_creator.h | 85 static SessionStartupPref GetSessionStartupPref(
|
/external/chromium_org/chrome/browser/translate/ |
H A D | translate_manager_browsertest.cc | 34 SessionStartupPref pref(SessionStartupPref::LAST); 35 SessionStartupPref::SetStartupPref(browser()->profile(), pref);
|
/external/chromium_org/chrome/browser/extensions/api/settings_overrides/ |
H A D | 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);
|
H A D | settings_overrides_api.cc | 182 new base::FundamentalValue(SessionStartupPref::kPrefValueURLs));
|
/external/chromium_org/chrome/browser/profile_resetter/ |
H A D | resettable_settings_snapshot.h | 47 SessionStartupPref::Type startup_type() const { return startup_.type; } 91 SessionStartupPref startup_;
|
H A D | profile_resetter_unittest.cc | 721 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 D | resettable_settings_snapshot.cc | 60 : 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 D | startup_pages_handler.cc | 85 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 D | pref_hash_browsertest.cc | 518 SessionStartupPref::URLS); 592 SessionStartupPref::URLS); 620 SessionStartupPref::URLS); 797 SessionStartupPref::LAST);
|
/external/chromium_org/chrome/browser/rlz/ |
H A D | rlz.cc | 251 SessionStartupPref session_startup_prefs = 254 if (session_startup_prefs.type == SessionStartupPref::URLS) {
|
/external/chromium_org/chrome/browser/profiles/ |
H A D | profile_impl.cc | 614 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 D | browser_close_manager_browsertest.cc | 242 SessionStartupPref::SetStartupPref( 243 browser()->profile(), SessionStartupPref(SessionStartupPref::LAST));
|