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

Side by Side Diff: chrome/browser/profiles/profile.cc

Issue 10985083: Upstreaming SpdyProxy-related switches, OTR logic, and histograms (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 2 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
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/profiles/profile.h" 5 #include "chrome/browser/profiles/profile.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #include "chrome/browser/prefs/pref_service.h" 10 #include "chrome/browser/prefs/pref_service.h"
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 prefs->RegisterStringPref(prefs::kApplicationLocale, 88 prefs->RegisterStringPref(prefs::kApplicationLocale,
89 "", 89 "",
90 PrefService::SYNCABLE_PREF); 90 PrefService::SYNCABLE_PREF);
91 prefs->RegisterStringPref(prefs::kApplicationLocaleBackup, 91 prefs->RegisterStringPref(prefs::kApplicationLocaleBackup,
92 "", 92 "",
93 PrefService::UNSYNCABLE_PREF); 93 PrefService::UNSYNCABLE_PREF);
94 prefs->RegisterStringPref(prefs::kApplicationLocaleAccepted, 94 prefs->RegisterStringPref(prefs::kApplicationLocaleAccepted,
95 "", 95 "",
96 PrefService::UNSYNCABLE_PREF); 96 PrefService::UNSYNCABLE_PREF);
97 #endif 97 #endif
98
99 #if defined(OS_ANDROID)
100 prefs->RegisterBooleanPref(prefs::kSpdyProxyEnabled,
101 false,
102 PrefService::UNSYNCABLE_PREF);
103 #endif
104
98 } 105 }
99 106
100 107
101 std::string Profile::GetDebugName() { 108 std::string Profile::GetDebugName() {
102 std::string name = GetPath().BaseName().MaybeAsASCII(); 109 std::string name = GetPath().BaseName().MaybeAsASCII();
103 if (name.empty()) { 110 if (name.empty()) {
104 name = "UnknownProfile"; 111 name = "UnknownProfile";
105 } 112 }
106 return name; 113 return name;
107 } 114 }
(...skipping 16 matching lines...) Expand all
124 131
125 void Profile::MaybeSendDestroyedNotification() { 132 void Profile::MaybeSendDestroyedNotification() {
126 if (!sent_destroyed_notification_) { 133 if (!sent_destroyed_notification_) {
127 sent_destroyed_notification_ = true; 134 sent_destroyed_notification_ = true;
128 content::NotificationService::current()->Notify( 135 content::NotificationService::current()->Notify(
129 chrome::NOTIFICATION_PROFILE_DESTROYED, 136 chrome::NOTIFICATION_PROFILE_DESTROYED,
130 content::Source<Profile>(this), 137 content::Source<Profile>(this),
131 content::NotificationService::NoDetails()); 138 content::NotificationService::NoDetails());
132 } 139 }
133 } 140 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698