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

Unified Diff: components/ntp_snippets/remote/ntp_snippets_fetcher.cc

Issue 2485253002: Remove unnecessary calls to GURL() (Closed)
Patch Set: Assert that StringPiece must always be canonicalized. Fix some constants. Created 4 years, 1 month 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/ntp_snippets/remote/ntp_snippets_fetcher.cc
diff --git a/components/ntp_snippets/remote/ntp_snippets_fetcher.cc b/components/ntp_snippets/remote/ntp_snippets_fetcher.cc
index 2ea5b5a6a41d87c3ee8379e63ac364b9473b83b6..a4f558cc07e3c7a6039f67c583a56d8aa16e29ce 100644
--- a/components/ntp_snippets/remote/ntp_snippets_fetcher.cc
+++ b/components/ntp_snippets/remote/ntp_snippets_fetcher.cc
@@ -156,12 +156,12 @@ bool IsSendingUserClassEnabled() {
}
bool UsesChromeContentSuggestionsAPI(const GURL& endpoint) {
- if (endpoint == GURL(kChromeReaderServer))
+ if (endpoint == kChromeReaderServer)
return false;
- if (endpoint != GURL(kContentSuggestionsServer) &&
- endpoint != GURL(kContentSuggestionsStagingServer) &&
- endpoint != GURL(kContentSuggestionsAlphaServer)) {
+ if (endpoint != kContentSuggestionsServer &&
+ endpoint != kContentSuggestionsStagingServer &&
+ endpoint != kContentSuggestionsAlphaServer) {
LOG(WARNING) << "Unknown value for " << kContentSuggestionsBackend << ": "
<< "assuming chromecontentsuggestions-style API";
}

Powered by Google App Engine
This is Rietveld 408576698