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

Unified Diff: chrome/utility/media_galleries/itunes_library_parser.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 | « chrome/test/chromedriver/net/websocket.cc ('k') | components/arc/intent_helper/intent_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/utility/media_galleries/itunes_library_parser.cc
diff --git a/chrome/utility/media_galleries/itunes_library_parser.cc b/chrome/utility/media_galleries/itunes_library_parser.cc
index 6eaa60fd8aca29ce741359cbcca0aae6a64b367c..954f6378585bda1230fbab079916d7d559f4cf3e 100644
--- a/chrome/utility/media_galleries/itunes_library_parser.cc
+++ b/chrome/utility/media_galleries/itunes_library_parser.cc
@@ -51,9 +51,9 @@ class TrackInfoXmlDictReader : public iapps::XmlDictReader {
if (!url.SchemeIsFile())
return false;
url::RawCanonOutputW<1024> decoded_location;
- url::DecodeURLEscapeSequences(url.path().c_str() + 1, // Strip /.
- url.path().length() - 1,
- &decoded_location);
+ url::DecodeURLEscapeSequences(
+ url.path().as_string().c_str() + 1, // Strip /.
+ url.path().as_string().length() - 1, &decoded_location);
#if defined(OS_WIN)
base::string16 location(decoded_location.data(),
decoded_location.length());
« no previous file with comments | « chrome/test/chromedriver/net/websocket.cc ('k') | components/arc/intent_helper/intent_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698