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

Unified Diff: components/history/core/browser/web_history_service.cc

Issue 2481923002: [WIP] make GURL::path() return a StringPiece (Closed)
Patch Set: thanks asan 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 | « components/history/core/browser/top_sites_cache.cc ('k') | components/omnibox/browser/builtin_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/history/core/browser/web_history_service.cc
diff --git a/components/history/core/browser/web_history_service.cc b/components/history/core/browser/web_history_service.cc
index abe202c87cdbc5dddefc9b56086533918efb5802..747553c135f225b862cf734150b9bc2e7e08fc39 100644
--- a/components/history/core/browser/web_history_service.cc
+++ b/components/history/core/browser/web_history_service.cc
@@ -514,7 +514,7 @@ void WebHistoryService::QueryOtherFormsOfBrowsingHistory(
channel);
GURL::Replacements replace_path;
std::string new_path =
- url.path() + kQueryOtherFormsOfBrowsingHistoryUrlSuffix;
+ url.path().as_string() + kQueryOtherFormsOfBrowsingHistoryUrlSuffix;
replace_path.SetPathStr(new_path);
url = url.ReplaceComponents(replace_path);
DCHECK(url.is_valid());
« no previous file with comments | « components/history/core/browser/top_sites_cache.cc ('k') | components/omnibox/browser/builtin_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698