[cc] Remove WTF constructs from CCLayerTreeHostClient

Pulling on this string ends up touching a lot of code, but it's all fairly
mechanical.  The only unfortunate part of this patch that it's not easy to pass
a scoped_ptr through CCThreadTask (so it just sends a raw pointer), but this
can get fixed after CCThreadTask switches to using base/.

BUG=154451

Review URL: https://chromiumcodereview.appspot.com/11065046

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160580 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/cc/CCLayerTreeHostImpl.cpp b/cc/CCLayerTreeHostImpl.cpp
index de8f668..e64a9f80 100644
--- a/cc/CCLayerTreeHostImpl.cpp
+++ b/cc/CCLayerTreeHostImpl.cpp
@@ -719,7 +719,7 @@
     setBackgroundTickingEnabled(!m_visible && m_needsAnimateLayers);
 }
 
-bool CCLayerTreeHostImpl::initializeRenderer(PassOwnPtr<CCGraphicsContext> context)
+bool CCLayerTreeHostImpl::initializeRenderer(scoped_ptr<CCGraphicsContext> context)
 {
     // Since we will create a new resource provider, we cannot continue to use
     // the old resources (i.e. renderSurfaces and texture IDs). Clear them
@@ -731,7 +731,7 @@
     // Note: order is important here.
     m_renderer.clear();
     m_resourceProvider.clear();
-    m_context.clear();
+    m_context.reset();
 
     if (!context->bindToClient(this))
         return false;
@@ -748,7 +748,7 @@
         return false;
 
     m_resourceProvider = resourceProvider.release();
-    m_context = context;
+    m_context = context.Pass();
 
     if (!m_visible)
         m_renderer->setVisible(m_visible);