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

Unified Diff: components/autofill/core/browser/autofill_field_trial_ios.cc

Issue 2146523004: Make full-form autofill the only implementation on iOS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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: components/autofill/core/browser/autofill_field_trial_ios.cc
diff --git a/components/autofill/core/browser/autofill_field_trial_ios.cc b/components/autofill/core/browser/autofill_field_trial_ios.cc
deleted file mode 100644
index 95290e046fcf45b8d4e7efa83ec04f46dda2e82f..0000000000000000000000000000000000000000
--- a/components/autofill/core/browser/autofill_field_trial_ios.cc
+++ /dev/null
@@ -1,33 +0,0 @@
-// Copyright 2015 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 "components/autofill/core/browser/autofill_field_trial_ios.h"
-
-#include "base/command_line.h"
-#include "base/metrics/field_trial.h"
-#include "components/autofill/core/common/autofill_switches.h"
-
-namespace autofill {
-
-// The full-form Autofill field trial name.
-const char kFullFormFieldTrialName[] = "FullFormAutofill";
-
-// static
-bool AutofillFieldTrialIOS::IsFullFormAutofillEnabled() {
- // Query the field trial state first to ensure that UMA reports the correct
- // group.
- std::string field_trial_state =
- base::FieldTrialList::FindFullName(kFullFormFieldTrialName);
-
- const base::CommandLine* command_line =
- base::CommandLine::ForCurrentProcess();
- if (command_line->HasSwitch(switches::kDisableFullFormAutofillIOS))
- return false;
- if (command_line->HasSwitch(switches::kEnableFullFormAutofillIOS))
- return true;
-
- return !field_trial_state.empty() && field_trial_state != "Disabled";
-}
-
-} // namespace autofill
« no previous file with comments | « components/autofill/core/browser/autofill_field_trial_ios.h ('k') | components/autofill/core/browser/autofill_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698