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

Unified Diff: webkit/glue/plugins/pepper_plugin_module.cc

Issue 2800028: Simplfy Pepepr2 bolierplate code. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Updated. Created 10 years, 6 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: webkit/glue/plugins/pepper_plugin_module.cc
diff --git a/webkit/glue/plugins/pepper_plugin_module.cc b/webkit/glue/plugins/pepper_plugin_module.cc
index 4bb5ea11d127804130f09fdd0b5ee06ec210d264..4752156d4c8d0df14eb10fdd4585ddf26ca44dd7 100644
--- a/webkit/glue/plugins/pepper_plugin_module.cc
+++ b/webkit/glue/plugins/pepper_plugin_module.cc
@@ -117,7 +117,7 @@ bool ReadImageData(PP_Resource device_context_2d,
PP_Resource image,
int32_t x, int32_t y) {
scoped_refptr<DeviceContext2D> context(
- ResourceTracker::Get()->GetAsDeviceContext2D(device_context_2d));
+ Resource::GetAs<DeviceContext2D>(device_context_2d));
if (!context.get())
return false;
return context->ReadImageData(image, x, y);

Powered by Google App Engine
This is Rietveld 408576698