Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Side by Side Diff: chrome/browser/prefs/session_startup_pref.cc

Issue 12211105: Move remaining non-test, non-Chrome-specific Prefs code to base/prefs/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments, merge to LKGR. Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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() {}
OLDNEW
« no previous file with comments | « chrome/browser/prefs/scoped_user_pref_update_unittest.cc ('k') | chrome/browser/prerender/prerender_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698