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

Unified 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: fix memory leak in AutofillMetricsTest. 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/autofill/autocheckout/whitelist_url.cc
diff --git a/chrome/browser/autofill/autocheckout/whitelist_url.cc b/chrome/browser/autofill/autocheckout/whitelist_url.cc
new file mode 100644
index 0000000000000000000000000000000000000000..8427dc0538fe4a69e4c0d9b87b97354cef0d1e72
--- /dev/null
+++ b/chrome/browser/autofill/autocheckout/whitelist_url.cc
@@ -0,0 +1,29 @@
+// Copyright (c) 2013 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 "chrome/browser/autofill/autocheckout/whitelist_url.h"
+
+#include <string>
+
+#include "base/command_line.h"
+#include "chrome/common/chrome_switches.h"
+#include "googleurl/src/gurl.h"
+
+namespace {
+
+const char kDefaultAutocheckoutWhitelistUrl[] =
+ "http://www.gstatic.com/commerce/autocheckout/whitelist.csv";
+
+} // namespace
+
+namespace autofill {
+namespace autocheckout {
+
+GURL GetAutocheckoutWhitelistUrl() {
+ return GURL(kDefaultAutocheckoutWhitelistUrl);
+}
+
+} // namespace autocheckout
+} // namespace autofill
+

Powered by Google App Engine
This is Rietveld 408576698