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

Side by Side Diff: chrome/browser/ui/passwords/manage_passwords_view_utils.cc

Issue 2354613002: [Sync] Fix namespaces for the browser_sync component. (Closed)
Patch Set: Address comments. Created 4 years, 3 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/ui/passwords/manage_passwords_view_utils.h" 5 #include "chrome/browser/ui/passwords/manage_passwords_view_utils.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 } 176 }
177 } 177 }
178 178
179 base::string16 GetDisplayUsername(const autofill::PasswordForm& form) { 179 base::string16 GetDisplayUsername(const autofill::PasswordForm& form) {
180 return form.username_value.empty() 180 return form.username_value.empty()
181 ? l10n_util::GetStringUTF16(IDS_PASSWORD_MANAGER_EMPTY_LOGIN) 181 ? l10n_util::GetStringUTF16(IDS_PASSWORD_MANAGER_EMPTY_LOGIN)
182 : form.username_value; 182 : form.username_value;
183 } 183 }
184 184
185 bool IsSyncingAutosignSetting(Profile* profile) { 185 bool IsSyncingAutosignSetting(Profile* profile) {
186 const ProfileSyncService* sync_service = 186 const browser_sync::ProfileSyncService* sync_service =
187 ProfileSyncServiceFactory::GetForProfile(profile); 187 ProfileSyncServiceFactory::GetForProfile(profile);
188 return (sync_service && sync_service->IsFirstSetupComplete() && 188 return (sync_service && sync_service->IsFirstSetupComplete() &&
189 sync_service->IsSyncActive() && 189 sync_service->IsSyncActive() &&
190 sync_service->GetActiveDataTypes().Has(syncer::PRIORITY_PREFERENCES)); 190 sync_service->GetActiveDataTypes().Has(syncer::PRIORITY_PREFERENCES));
191 } 191 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698