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

Unified Diff: extensions/common/manifest_handlers/webview_info.cc

Issue 1312653003: Fix for WebView accessible resources. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments by kalman@. Created 5 years, 4 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: extensions/common/manifest_handlers/webview_info.cc
diff --git a/extensions/common/manifest_handlers/webview_info.cc b/extensions/common/manifest_handlers/webview_info.cc
index 50400023bd82021b7edb639a1fc2406c06861e3d..cba6e179bd099db852612b92f7758427c2e1a042 100644
--- a/extensions/common/manifest_handlers/webview_info.cc
+++ b/extensions/common/manifest_handlers/webview_info.cc
@@ -51,6 +51,12 @@ class PartitionItem {
URLPatternSet accessible_resources_;
};
+// static.
+const WebviewInfo* WebviewInfo::Get(const Extension* extension) {
+ return static_cast<const WebviewInfo*>(
+ extension->GetManifestData(keys::kWebviewAccessibleResources));
+}
+
WebviewInfo::WebviewInfo(const std::string& extension_id)
: extension_id_(extension_id) {
}

Powered by Google App Engine
This is Rietveld 408576698