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

Unified Diff: android_webview/browser/aw_media_url_interceptor.cc

Issue 2863233002: [WebView] Move files from native to browser (Closed)
Patch Set: Created 3 years, 7 months 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: android_webview/browser/aw_media_url_interceptor.cc
diff --git a/android_webview/native/aw_media_url_interceptor.cc b/android_webview/browser/aw_media_url_interceptor.cc
similarity index 86%
rename from android_webview/native/aw_media_url_interceptor.cc
rename to android_webview/browser/aw_media_url_interceptor.cc
index 3ec6eeacf11101d5ba62e47bf3157de55081d11c..1476acad30536a276967e2769c4035e7a27f180f 100644
--- a/android_webview/native/aw_media_url_interceptor.cc
+++ b/android_webview/browser/aw_media_url_interceptor.cc
@@ -4,8 +4,8 @@
#include <string>
+#include "android_webview/browser/aw_media_url_interceptor.h"
#include "android_webview/common/url_constants.h"
-#include "android_webview/native/aw_media_url_interceptor.h"
#include "base/android/apk_assets.h"
#include "base/strings/string_util.h"
#include "content/public/common/url_constants.h"
@@ -22,8 +22,8 @@ bool AwMediaUrlInterceptor::Intercept(const std::string& url,
if (base::StartsWith(url, asset_file_prefix, base::CompareCase::SENSITIVE)) {
std::string filename(url);
- base::ReplaceFirstSubstringAfterOffset(
- &filename, 0, asset_file_prefix, "assets/");
+ base::ReplaceFirstSubstringAfterOffset(&filename, 0, asset_file_prefix,
+ "assets/");
base::MemoryMappedFile::Region region =
base::MemoryMappedFile::Region::kWholeFile;
*fd = base::android::OpenApkAsset(filename, &region);

Powered by Google App Engine
This is Rietveld 408576698