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

Unified Diff: components/autofill/browser/autofill_download_url.cc

Issue 17392006: In components/autofill, move browser/ to core/browser/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to fix conflicts 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 side-by-side diff with in-line comments
Download patch
Index: components/autofill/browser/autofill_download_url.cc
diff --git a/components/autofill/browser/autofill_download_url.cc b/components/autofill/browser/autofill_download_url.cc
deleted file mode 100644
index 2710c794434b2a73e910c24dbad1499fbb2f894b..0000000000000000000000000000000000000000
--- a/components/autofill/browser/autofill_download_url.cc
+++ /dev/null
@@ -1,47 +0,0 @@
-// Copyright (c) 2012 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/browser/autofill_download_url.h"
-
-#include <string>
-
-#include "base/command_line.h"
-#include "components/autofill/core/common/autofill_switches.h"
-#include "googleurl/src/gurl.h"
-
-namespace autofill {
-namespace {
-
-const char kDefaultAutofillServiceUrl[] =
- "https://clients1.google.com/tbproxy/af/";
-
-#if defined(GOOGLE_CHROME_BUILD)
-const char kClientName[] = "Google Chrome";
-#else
-const char kClientName[] = "Chromium";
-#endif // defined(GOOGLE_CHROME_BUILD)
-
-std::string GetBaseAutofillUrl() {
- const CommandLine& command_line = *CommandLine::ForCurrentProcess();
- std::string baseAutofillServiceUrl = command_line.GetSwitchValueASCII(
- switches::kAutofillServiceUrl);
- if (baseAutofillServiceUrl.empty())
- return kDefaultAutofillServiceUrl;
-
- return baseAutofillServiceUrl;
-}
-
-} // namespace
-
-GURL GetAutofillQueryUrl() {
- std::string baseAutofillServiceUrl = GetBaseAutofillUrl();
- return GURL(baseAutofillServiceUrl + "query?client=" + kClientName);
-}
-
-GURL GetAutofillUploadUrl() {
- std::string baseAutofillServiceUrl = GetBaseAutofillUrl();
- return GURL(baseAutofillServiceUrl + "upload?client=" + kClientName);
-}
-
-} // namespace autofill
« no previous file with comments | « components/autofill/browser/autofill_download_url.h ('k') | components/autofill/browser/autofill_download_url_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698