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/prefs/pref_service.h" |
9 #include "base/values.h" | 10 #include "base/values.h" |
10 #include "base/version.h" | 11 #include "base/version.h" |
11 #include "chrome/browser/net/url_fixer_upper.h" | 12 #include "chrome/browser/net/url_fixer_upper.h" |
12 #include "chrome/browser/prefs/pref_registry_syncable.h" | 13 #include "chrome/browser/prefs/pref_registry_syncable.h" |
13 #include "chrome/browser/prefs/pref_service.h" | |
14 #include "chrome/browser/prefs/scoped_user_pref_update.h" | 14 #include "chrome/browser/prefs/scoped_user_pref_update.h" |
15 #include "chrome/browser/profiles/profile.h" | 15 #include "chrome/browser/profiles/profile.h" |
16 #include "chrome/common/pref_names.h" | 16 #include "chrome/common/pref_names.h" |
17 | 17 |
18 #if defined(OS_MACOSX) | 18 #if defined(OS_MACOSX) |
19 #include "chrome/browser/ui/cocoa/window_restore_utils.h" | 19 #include "chrome/browser/ui/cocoa/window_restore_utils.h" |
20 #endif | 20 #endif |
21 | 21 |
22 namespace { | 22 namespace { |
23 | 23 |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 case kPrefValueLast: return SessionStartupPref::LAST; | 226 case kPrefValueLast: return SessionStartupPref::LAST; |
227 case kPrefValueURLs: return SessionStartupPref::URLS; | 227 case kPrefValueURLs: return SessionStartupPref::URLS; |
228 case kPrefValueHomePage: return SessionStartupPref::HOMEPAGE; | 228 case kPrefValueHomePage: return SessionStartupPref::HOMEPAGE; |
229 default: return SessionStartupPref::DEFAULT; | 229 default: return SessionStartupPref::DEFAULT; |
230 } | 230 } |
231 } | 231 } |
232 | 232 |
233 SessionStartupPref::SessionStartupPref(Type type) : type(type) {} | 233 SessionStartupPref::SessionStartupPref(Type type) : type(type) {} |
234 | 234 |
235 SessionStartupPref::~SessionStartupPref() {} | 235 SessionStartupPref::~SessionStartupPref() {} |
OLD | NEW |