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

Unified Diff: ios/web/webui/crw_web_ui_manager_unittest.mm

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: ios/web/webui/crw_web_ui_manager_unittest.mm
diff --git a/ios/web/webui/crw_web_ui_manager_unittest.mm b/ios/web/webui/crw_web_ui_manager_unittest.mm
index e5274d8541690757deffc152748c6c726ce37d40..b040edc9ae4b92b94a652358da02da40e5e91f9e 100644
--- a/ios/web/webui/crw_web_ui_manager_unittest.mm
+++ b/ios/web/webui/crw_web_ui_manager_unittest.mm
@@ -79,7 +79,7 @@ class MockURLFetcherBlockAdapter : public URLFetcherBlockAdapter {
NSData* favicon = [NSData
dataWithContentsOfFile:base::SysUTF8ToNSString(favicon_path.value())];
completion_handler_.get()(favicon, this);
- } else if (url_.path().find(kMojoModuleName) != std::string::npos) {
+ } else if (url_.path().find(kMojoModuleName) != base::StringPiece::npos) {
completion_handler_.get()(
[kMojoModule dataUsingEncoding:NSUTF8StringEncoding], this);
« no previous file with comments | « ios/web/public/test/response_providers/file_based_response_provider_impl.mm ('k') | net/base/filename_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698