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

Unified Diff: chrome/browser/ui/passwords/password_bubble_experiment.cc

Issue 1133613007: Move password_manager_util and password_bubble_experiment to components (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@486739_componentise_experiment_utils_to_ios_sources
Patch Set: Created 5 years, 7 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: chrome/browser/ui/passwords/password_bubble_experiment.cc
diff --git a/chrome/browser/ui/passwords/password_bubble_experiment.cc b/chrome/browser/ui/passwords/password_bubble_experiment.cc
deleted file mode 100644
index 50ec27f2c10cf071d9679c3b7d104650ec4d787e..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/passwords/password_bubble_experiment.cc
+++ /dev/null
@@ -1,32 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/ui/passwords/password_bubble_experiment.h"
-
-#include "base/metrics/field_trial.h"
-#include "base/prefs/pref_service.h"
-#include "chrome/browser/password_manager/password_manager_util.h"
-
-namespace password_bubble_experiment {
-namespace {
-
-const char kBrandingExperimentName[] = "PasswordBranding";
-const char kSmartLockBrandingGroupName[] = "SmartLockBranding";
-
-} // namespace
-
-void RecordBubbleClosed(
- PrefService* prefs,
- password_manager::metrics_util::UIDismissalReason reason) {
- // TODO(vasilii): store the statistics.
-}
-
-bool IsSmartLockBrandingEnabled(const sync_driver::SyncService* sync_service) {
- return password_manager_util::GetPasswordSyncState(sync_service) ==
- password_manager::SYNCING_NORMAL_ENCRYPTION &&
- base::FieldTrialList::FindFullName(kBrandingExperimentName) ==
- kSmartLockBrandingGroupName;
-}
-
-} // namespace password_bubble_experiment

Powered by Google App Engine
This is Rietveld 408576698