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

Unified Diff: chrome/browser/ui/webui/sync_promo/sync_promo_ui.cc

Issue 12069004: google_apis: Move AppendQueryParameter() etc. from common/net/url_util.h to net/base/url_util.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/ui/webui/sync_promo/sync_promo_ui.cc
diff --git a/chrome/browser/ui/webui/sync_promo/sync_promo_ui.cc b/chrome/browser/ui/webui/sync_promo/sync_promo_ui.cc
index 6e00ca14e4f8e10bd1531731f77db45273d6b4fd..cb140efddbb54b6441f5e7e17b76d8a5d0309585 100644
--- a/chrome/browser/ui/webui/sync_promo/sync_promo_ui.cc
+++ b/chrome/browser/ui/webui/sync_promo/sync_promo_ui.cc
@@ -25,7 +25,6 @@
#include "chrome/common/chrome_switches.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/url_constants.h"
-#include "chrome/common/net/url_util.h"
#include "content/public/browser/url_data_source.h"
#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_ui.h"
@@ -36,6 +35,7 @@
#include "grit/theme_resources.h"
#include "net/base/escape.h"
#include "net/base/network_change_notifier.h"
+#include "net/base/url_util.h"
#include "ui/base/l10n/l10n_util.h"
using content::WebContents;
@@ -267,7 +267,7 @@ GURL SyncPromoUI::GetNextPageURLForSyncPromoURL(const GURL& url) {
const char* key_name = UseWebBasedSigninFlow() ? kSyncPromoQueryKeyContinue :
kSyncPromoQueryKeyNextPage;
std::string value;
- if (chrome_common_net::GetValueForKeyInQuery(url, key_name, &value)) {
+ if (net::GetValueForKeyInQuery(url, key_name, &value)) {
return GURL(value);
}
return GURL();
@@ -276,8 +276,7 @@ GURL SyncPromoUI::GetNextPageURLForSyncPromoURL(const GURL& url) {
// static
SyncPromoUI::Source SyncPromoUI::GetSourceForSyncPromoURL(const GURL& url) {
std::string value;
- if (chrome_common_net::GetValueForKeyInQuery(
- url, kSyncPromoQueryKeySource, &value)) {
+ if (net::GetValueForKeyInQuery(url, kSyncPromoQueryKeySource, &value)) {
int source = 0;
if (base::StringToInt(value, &source) && source >= SOURCE_START_PAGE &&
source < SOURCE_UNKNOWN) {
@@ -290,8 +289,7 @@ SyncPromoUI::Source SyncPromoUI::GetSourceForSyncPromoURL(const GURL& url) {
// static
bool SyncPromoUI::GetAutoCloseForSyncPromoURL(const GURL& url) {
std::string value;
- if (chrome_common_net::GetValueForKeyInQuery(
- url, kSyncPromoQueryKeyAutoClose, &value)) {
+ if (net::GetValueForKeyInQuery(url, kSyncPromoQueryKeyAutoClose, &value)) {
int source = 0;
base::StringToInt(value, &source);
return (source == 1);
« no previous file with comments | « chrome/browser/ui/sync/one_click_signin_helper.cc ('k') | chrome/browser/web_resource/notification_promo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698