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

Unified Diff: chrome/common/extensions/chrome_extensions_client.cc

Issue 2478573004: Convert GURL::{host,path} to GURL::{host_piece,path_piece} for ==. (Closed)
Patch Set: 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: chrome/common/extensions/chrome_extensions_client.cc
diff --git a/chrome/common/extensions/chrome_extensions_client.cc b/chrome/common/extensions/chrome_extensions_client.cc
index b999102c9fe82780c133755f5158d9a46ab26588..c57a3df5cbd769a9b41d9b70e07c81e134c5d904 100644
--- a/chrome/common/extensions/chrome_extensions_client.cc
+++ b/chrome/common/extensions/chrome_extensions_client.cc
@@ -232,7 +232,7 @@ bool ChromeExtensionsClient::IsScriptableURL(
// TODO(erikkay): This seems like the wrong test. Shouldn't we we testing
// against the store app extent?
GURL store_url(extension_urls::GetWebstoreLaunchURL());
- if (url.host() == store_url.host()) {
+ if (url.host_piece() == store_url.host_piece()) {
if (error)
*error = manifest_errors::kCannotScriptGallery;
return false;

Powered by Google App Engine
This is Rietveld 408576698