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

Unified Diff: trunk/src/chrome/browser/password_manager/sync_metrics.cc

Issue 477273003: Revert 290030 "[Password Manager] Setup experiment to restrict a..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: trunk/src/chrome/browser/password_manager/sync_metrics.cc
===================================================================
--- trunk/src/chrome/browser/password_manager/sync_metrics.cc (revision 290044)
+++ trunk/src/chrome/browser/password_manager/sync_metrics.cc (working copy)
@@ -14,19 +14,10 @@
namespace password_manager_sync_metrics {
std::string GetSyncUsername(Profile* profile) {
- // If sync is set up, return early if we aren't syncing passwords.
- if (ProfileSyncServiceFactory::HasProfileSyncService(profile)) {
- ProfileSyncService* sync_service =
- ProfileSyncServiceFactory::GetForProfile(profile);
- if (!sync_service->GetPreferredDataTypes().Has(syncer::PASSWORDS))
- return std::string();
- }
-
SigninManagerBase* signin_manager =
SigninManagerFactory::GetForProfile(profile);
-
if (!signin_manager)
- return std::string();
+ return "";
return signin_manager->GetAuthenticatedUsername();
}

Powered by Google App Engine
This is Rietveld 408576698