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

Side by Side Diff: chrome/browser/autofill/autocheckout/whitelist_url.cc

Issue 11867025: Download autocheckout whitelist and enable autocheckout for whitelisted sites only. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: revert code change for manual testing/:wq. Created 7 years, 11 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
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/autofill/autocheckout/whitelist_url.h"
6
7 #include <string>
8
9 #include "base/command_line.h"
10 #include "chrome/common/chrome_switches.h"
11 #include "googleurl/src/gurl.h"
12
13 namespace {
14
15 const char kDefaultAutocheckoutWhitelistUrl[] =
16 "http://www.gstatic.com/commerce/autocheckout/whitelist.csv";
17
18 } // namespace
19
20 namespace autocheckout {
21
22 GURL GetAutocheckoutWhitelistUrl() {
23 const CommandLine& command_line = *CommandLine::ForCurrentProcess();
24 std::string autocheckoutWhitelistUrl = command_line.GetSwitchValueASCII(
25 switches::kAutocheckoutWhitelistUrl);
26 if (autocheckoutWhitelistUrl.empty())
27 return GURL(kDefaultAutocheckoutWhitelistUrl);
28
29 return GURL(autocheckoutWhitelistUrl);
30 }
31
32 } // namespace autocheckout
33
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698