OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/prefs/session_startup_pref.h" | 5 #include "chrome/browser/prefs/session_startup_pref.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/metrics/histogram.h" | 9 #include "base/metrics/histogram.h" |
10 #include "base/prefs/pref_service.h" | 10 #include "base/prefs/pref_service.h" |
11 #include "base/prefs/scoped_user_pref_update.h" | 11 #include "base/prefs/scoped_user_pref_update.h" |
12 #include "base/time/time.h" | 12 #include "base/time/time.h" |
13 #include "base/values.h" | 13 #include "base/values.h" |
14 #include "base/version.h" | 14 #include "base/version.h" |
15 #include "chrome/browser/profiles/profile.h" | 15 #include "chrome/browser/profiles/profile.h" |
16 #include "chrome/common/net/url_fixer_upper.h" | 16 #include "chrome/common/net/url_fixer_upper.h" |
17 #include "chrome/common/pref_names.h" | 17 #include "chrome/common/pref_names.h" |
18 #include "components/user_prefs/pref_registry_syncable.h" | 18 #include "components/pref_registry/pref_registry_syncable.h" |
19 | 19 |
20 #if defined(OS_MACOSX) | 20 #if defined(OS_MACOSX) |
21 #include "chrome/browser/ui/cocoa/window_restore_utils.h" | 21 #include "chrome/browser/ui/cocoa/window_restore_utils.h" |
22 #endif | 22 #endif |
23 | 23 |
24 namespace { | 24 namespace { |
25 | 25 |
26 enum StartupURLsMigrationMetrics { | 26 enum StartupURLsMigrationMetrics { |
27 STARTUP_URLS_MIGRATION_METRICS_PERFORMED, | 27 STARTUP_URLS_MIGRATION_METRICS_PERFORMED, |
28 STARTUP_URLS_MIGRATION_METRICS_NOT_PRESENT, | 28 STARTUP_URLS_MIGRATION_METRICS_NOT_PRESENT, |
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
296 case kPrefValueLast: return SessionStartupPref::LAST; | 296 case kPrefValueLast: return SessionStartupPref::LAST; |
297 case kPrefValueURLs: return SessionStartupPref::URLS; | 297 case kPrefValueURLs: return SessionStartupPref::URLS; |
298 case kPrefValueHomePage: return SessionStartupPref::HOMEPAGE; | 298 case kPrefValueHomePage: return SessionStartupPref::HOMEPAGE; |
299 default: return SessionStartupPref::DEFAULT; | 299 default: return SessionStartupPref::DEFAULT; |
300 } | 300 } |
301 } | 301 } |
302 | 302 |
303 SessionStartupPref::SessionStartupPref(Type type) : type(type) {} | 303 SessionStartupPref::SessionStartupPref(Type type) : type(type) {} |
304 | 304 |
305 SessionStartupPref::~SessionStartupPref() {} | 305 SessionStartupPref::~SessionStartupPref() {} |
OLD | NEW |