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

Side by Side Diff: components/autofill/browser/wallet/required_action.cc

Issue 12434004: Move remaining Autofill code to //components/autofill. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/autofill/wallet/required_action.h" 5 #include "components/autofill/browser/wallet/required_action.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/string_util.h" 8 #include "base/string_util.h"
9 9
10 namespace autofill { 10 namespace autofill {
11 namespace wallet { 11 namespace wallet {
12 12
13 bool ActionAppliesToFullWallet(RequiredAction action) { 13 bool ActionAppliesToFullWallet(RequiredAction action) {
14 return action == UPDATE_EXPIRATION_DATE || 14 return action == UPDATE_EXPIRATION_DATE ||
15 action == UPGRADE_MIN_ADDRESS || 15 action == UPGRADE_MIN_ADDRESS ||
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 return PASSIVE_GAIA_AUTH; 54 return PASSIVE_GAIA_AUTH;
55 else if (str_lower == "require_phone_number") 55 else if (str_lower == "require_phone_number")
56 return REQUIRE_PHONE_NUMBER; 56 return REQUIRE_PHONE_NUMBER;
57 57
58 DLOG(ERROR) << "Failed to parse: \"" << str << "\" as a required action"; 58 DLOG(ERROR) << "Failed to parse: \"" << str << "\" as a required action";
59 return UNKNOWN_TYPE; 59 return UNKNOWN_TYPE;
60 } 60 }
61 61
62 } // namespace wallet 62 } // namespace wallet
63 } // namespace autofill 63 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698