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

Unified Diff: content/shell/test_runner/test_plugin.cc

Issue 2846843002: [blink] Unique pointers in Platform.h (Closed)
Patch Set: fix compilation (and again) Created 3 years, 8 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: content/shell/test_runner/test_plugin.cc
diff --git a/content/shell/test_runner/test_plugin.cc b/content/shell/test_runner/test_plugin.cc
index fc588dc29d40dff464620fee93b365f7fef98af2..c2b5fe63f168c7a426b828ce3b2372c79a258fc2 100644
--- a/content/shell/test_runner/test_plugin.cc
+++ b/content/shell/test_runner/test_plugin.cc
@@ -175,9 +175,9 @@ bool TestPlugin::Initialize(blink::WebPluginContainer* container) {
1; // We are creating a context through the WebGL APIs.
blink::WebURL url = container->GetDocument().Url();
blink::Platform::GraphicsInfo gl_info;
- context_provider_ = base::WrapUnique(
+ context_provider_ =
blink::Platform::Current()->CreateOffscreenGraphicsContext3DProvider(
- attrs, url, nullptr, &gl_info));
+ attrs, url, nullptr, &gl_info);
if (!context_provider_->BindToCurrentThread())
context_provider_ = nullptr;
gl_ = context_provider_ ? context_provider_->ContextGL() : nullptr;

Powered by Google App Engine
This is Rietveld 408576698