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

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

Issue 1446473002: Enable compilation of //components/autofill on iOS with gn. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@os_crypt
Patch Set: Created 5 years, 1 month 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/ios/browser/autofill_field_trial_ios.cc
diff --git a/components/autofill/ios/browser/autofill_field_trial_ios.cc b/components/autofill/ios/browser/autofill_field_trial_ios.cc
deleted file mode 100644
index 518f342132aad69abcf68ba4a5828361bfdfbdb6..0000000000000000000000000000000000000000
--- a/components/autofill/ios/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/ios/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

Powered by Google App Engine
This is Rietveld 408576698