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 <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 SessionStartupPref::Type SessionStartupPref::PrefValueToType(int pref_value) { | 145 SessionStartupPref::Type SessionStartupPref::PrefValueToType(int pref_value) { |
146 switch (pref_value) { | 146 switch (pref_value) { |
147 case kPrefValueLast: return SessionStartupPref::LAST; | 147 case kPrefValueLast: return SessionStartupPref::LAST; |
148 case kPrefValueURLs: return SessionStartupPref::URLS; | 148 case kPrefValueURLs: return SessionStartupPref::URLS; |
149 default: return SessionStartupPref::DEFAULT; | 149 default: return SessionStartupPref::DEFAULT; |
150 } | 150 } |
151 } | 151 } |
152 | 152 |
153 SessionStartupPref::SessionStartupPref(Type type) : type(type) {} | 153 SessionStartupPref::SessionStartupPref(Type type) : type(type) {} |
154 | 154 |
| 155 SessionStartupPref::SessionStartupPref(const SessionStartupPref& other) = |
| 156 default; |
| 157 |
155 SessionStartupPref::~SessionStartupPref() {} | 158 SessionStartupPref::~SessionStartupPref() {} |
OLD | NEW |