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

Unified Diff: chrome/browser/sessions/session_common_utils.cc

Issue 2478573004: Convert GURL::{host,path} to GURL::{host_piece,path_piece} for ==. (Closed)
Patch Set: rebase to #431874 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 | « chrome/browser/search/search.cc ('k') | chrome/browser/ui/browser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sessions/session_common_utils.cc
diff --git a/chrome/browser/sessions/session_common_utils.cc b/chrome/browser/sessions/session_common_utils.cc
index 75973b73afa83d823ab1c05efe8b9bea2e52b675..a46d983c6ab75ee65544ffeb3939d46cfbd00151 100644
--- a/chrome/browser/sessions/session_common_utils.cc
+++ b/chrome/browser/sessions/session_common_utils.cc
@@ -10,6 +10,6 @@
bool ShouldTrackURLForRestore(const GURL& url) {
return url.is_valid() &&
!(url.SchemeIs(content::kChromeUIScheme) &&
- (url.host() == chrome::kChromeUIQuitHost ||
- url.host() == chrome::kChromeUIRestartHost));
+ (url.host_piece() == chrome::kChromeUIQuitHost ||
+ url.host_piece() == chrome::kChromeUIRestartHost));
}
« no previous file with comments | « chrome/browser/search/search.cc ('k') | chrome/browser/ui/browser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698