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

Unified Diff: components/sync/driver/sync_stopped_reporter.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
Index: components/sync/driver/sync_stopped_reporter.cc
diff --git a/components/sync/driver/sync_stopped_reporter.cc b/components/sync/driver/sync_stopped_reporter.cc
index ba5fbc8928ff04654c6ee666e0a9c80c9f450b65..425e7b085391901b740e75a7fc66edc07adf2ae6 100644
--- a/components/sync/driver/sync_stopped_reporter.cc
+++ b/components/sync/driver/sync_stopped_reporter.cc
@@ -98,7 +98,7 @@ void SyncStoppedReporter::OnTimeout() {
// Static.
GURL SyncStoppedReporter::GetSyncEventURL(const GURL& sync_service_url) {
- std::string path = sync_service_url.path();
+ std::string path = sync_service_url.path().as_string();
if (path.empty() || *path.rbegin() != '/') {
path += '/';
}

Powered by Google App Engine
This is Rietveld 408576698