OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/profiles/profile.h" | 5 #include "chrome/browser/profiles/profile.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 } | 88 } |
89 | 89 |
90 } // namespace | 90 } // namespace |
91 | 91 |
92 Profile::Profile() | 92 Profile::Profile() |
93 : restored_last_session_(false), | 93 : restored_last_session_(false), |
94 accessibility_pause_level_(0) { | 94 accessibility_pause_level_(0) { |
95 } | 95 } |
96 | 96 |
97 // static | 97 // static |
98 const char* Profile::kProfileKey = "__PROFILE__"; | 98 const char* const Profile::kProfileKey = "__PROFILE__"; |
99 | 99 |
100 #if !defined(OS_MACOSX) && !defined(OS_CHROMEOS) && defined(OS_POSIX) | 100 #if !defined(OS_MACOSX) && !defined(OS_CHROMEOS) && defined(OS_POSIX) |
101 // static | 101 // static |
102 const LocalProfileId Profile::kInvalidLocalProfileId = | 102 const LocalProfileId Profile::kInvalidLocalProfileId = |
103 static_cast<LocalProfileId>(0); | 103 static_cast<LocalProfileId>(0); |
104 #endif | 104 #endif |
105 | 105 |
106 // static | 106 // static |
107 void Profile::RegisterUserPrefs(PrefService* prefs) { | 107 void Profile::RegisterUserPrefs(PrefService* prefs) { |
108 prefs->RegisterBooleanPref(prefs::kSearchSuggestEnabled, | 108 prefs->RegisterBooleanPref(prefs::kSearchSuggestEnabled, |
(...skipping 735 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
844 }; | 844 }; |
845 #endif | 845 #endif |
846 | 846 |
847 Profile* Profile::CreateOffTheRecordProfile() { | 847 Profile* Profile::CreateOffTheRecordProfile() { |
848 #if defined(OS_CHROMEOS) | 848 #if defined(OS_CHROMEOS) |
849 if (Profile::IsGuestSession()) | 849 if (Profile::IsGuestSession()) |
850 return new GuestSessionProfile(this); | 850 return new GuestSessionProfile(this); |
851 #endif | 851 #endif |
852 return new OffTheRecordProfileImpl(this); | 852 return new OffTheRecordProfileImpl(this); |
853 } | 853 } |
OLD | NEW |