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

Unified Diff: extensions/common/extension_urls.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
« no previous file with comments | « extensions/browser/extension_error.cc ('k') | net/http/http_stream_factory_impl_job_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/extension_urls.cc
diff --git a/extensions/common/extension_urls.cc b/extensions/common/extension_urls.cc
index 08fb32d62305b896ed32af8b4b16379fc7ea6d97..5f5d7935e7e89c3466d0eb57bdba4846c5ada264 100644
--- a/extensions/common/extension_urls.cc
+++ b/extensions/common/extension_urls.cc
@@ -84,8 +84,8 @@ bool IsWebstoreUpdateUrl(const GURL& update_url) {
if (update_url == store_url) {
return true;
} else {
Devlin 2016/11/08 15:55:49 Totally not your code, but since you're here... :)
Charlie Harrison 2016/11/08 16:00:55 No problem. Done!
- return (update_url.host() == store_url.host() &&
- update_url.path() == store_url.path());
+ return (update_url.host_piece() == store_url.host_piece() &&
+ update_url.path_piece() == store_url.path_piece());
}
}
« no previous file with comments | « extensions/browser/extension_error.cc ('k') | net/http/http_stream_factory_impl_job_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698