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

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

Issue 1505913003: Add update menu item and app menu icon badge (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rearrange field_trial.. again to facilitate command line testing Created 5 years 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
« no previous file with comments | « chrome/browser/android/preferences/pref_service_bridge.cc ('k') | chrome/common/pref_names.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "base/prefs/pref_service.h" 9 #include "base/prefs/pref_service.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 registry->RegisterBooleanPref(prefs::kDevToolsRemoteEnabled, false); 139 registry->RegisterBooleanPref(prefs::kDevToolsRemoteEnabled, false);
140 #endif 140 #endif
141 141
142 registry->RegisterBooleanPref(prefs::kDataSaverEnabled, false); 142 registry->RegisterBooleanPref(prefs::kDataSaverEnabled, false);
143 data_reduction_proxy::RegisterSyncableProfilePrefs(registry); 143 data_reduction_proxy::RegisterSyncableProfilePrefs(registry);
144 144
145 #if !defined(OS_ANDROID) && !defined(OS_CHROMEOS) && !defined(OS_IOS) 145 #if !defined(OS_ANDROID) && !defined(OS_CHROMEOS) && !defined(OS_IOS)
146 // Preferences related to the avatar bubble and user manager tutorials. 146 // Preferences related to the avatar bubble and user manager tutorials.
147 registry->RegisterIntegerPref(prefs::kProfileAvatarTutorialShown, 0); 147 registry->RegisterIntegerPref(prefs::kProfileAvatarTutorialShown, 0);
148 #endif 148 #endif
149
150 #if defined(OS_ANDROID)
151 registry->RegisterBooleanPref(prefs::kClickedUpdateMenuItem, false);
152 #endif
149 } 153 }
150 154
151 std::string Profile::GetDebugName() { 155 std::string Profile::GetDebugName() {
152 std::string name = GetPath().BaseName().MaybeAsASCII(); 156 std::string name = GetPath().BaseName().MaybeAsASCII();
153 if (name.empty()) { 157 if (name.empty()) {
154 name = "UnknownProfile"; 158 name = "UnknownProfile";
155 } 159 }
156 return name; 160 return name;
157 } 161 }
158 162
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 if (a->IsSameProfile(b)) 212 if (a->IsSameProfile(b))
209 return false; 213 return false;
210 return a->GetOriginalProfile() < b->GetOriginalProfile(); 214 return a->GetOriginalProfile() < b->GetOriginalProfile();
211 } 215 }
212 216
213 double Profile::GetDefaultZoomLevelForProfile() { 217 double Profile::GetDefaultZoomLevelForProfile() {
214 return GetDefaultStoragePartition(this) 218 return GetDefaultStoragePartition(this)
215 ->GetHostZoomMap() 219 ->GetHostZoomMap()
216 ->GetDefaultZoomLevel(); 220 ->GetDefaultZoomLevel();
217 } 221 }
OLDNEW
« no previous file with comments | « chrome/browser/android/preferences/pref_service_bridge.cc ('k') | chrome/common/pref_names.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698