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

Side by Side Diff: components/autofill/content/browser/wallet/wallet_service_url.cc

Issue 16879006: In components/autofill, move common/ to core/common/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to fix conflict Created 7 years, 6 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "components/autofill/content/browser/wallet/wallet_service_url.h" 5 #include "components/autofill/content/browser/wallet/wallet_service_url.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/metrics/field_trial.h" 10 #include "base/metrics/field_trial.h"
11 #include "components/autofill/common/autofill_switches.h" 11 #include "components/autofill/core/common/autofill_switches.h"
12 #include "google_apis/gaia/gaia_urls.h" 12 #include "google_apis/gaia/gaia_urls.h"
13 #include "googleurl/src/gurl.h" 13 #include "googleurl/src/gurl.h"
14 #include "net/base/url_util.h" 14 #include "net/base/url_util.h"
15 15
16 namespace autofill { 16 namespace autofill {
17 namespace { 17 namespace {
18 18
19 const char kProdWalletServiceUrl[] = "https://wallet.google.com/"; 19 const char kProdWalletServiceUrl[] = "https://wallet.google.com/";
20 20
21 // TODO(ahutter): Remove this once production is ready. 21 // TODO(ahutter): Remove this once production is ready.
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 url.host() == final_url.host() && 147 url.host() == final_url.host() &&
148 url.path() == final_url.path(); 148 url.path() == final_url.path();
149 } 149 }
150 150
151 bool IsUsingProd() { 151 bool IsUsingProd() {
152 return GetWalletHostUrl() == GURL(kProdWalletServiceUrl); 152 return GetWalletHostUrl() == GURL(kProdWalletServiceUrl);
153 } 153 }
154 154
155 } // namespace wallet 155 } // namespace wallet
156 } // namespace autofill 156 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698