summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/extensions/chrome_app_bindings.cc
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-04 17:01:19 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-04 17:01:19 +0000
commit8d86f13d2e87cc58739121d40dd698122707878e (patch)
treee405675f7074a991812eeda37e48e4b265c0cb12 /chrome/renderer/extensions/chrome_app_bindings.cc
parent2b960d33bdcd6e390c0a9558b3793073f5659135 (diff)
downloadchromium_src-8d86f13d2e87cc58739121d40dd698122707878e.zip
chromium_src-8d86f13d2e87cc58739121d40dd698122707878e.tar.gz
chromium_src-8d86f13d2e87cc58739121d40dd698122707878e.tar.bz2
Make V8ValueConverter be an interface and move it to content\public\renderer and put in the content namespace.
BUG=98716 Review URL: http://codereview.chromium.org/8122011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103925 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/extensions/chrome_app_bindings.cc')
-rw-r--r--chrome/renderer/extensions/chrome_app_bindings.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/chrome/renderer/extensions/chrome_app_bindings.cc b/chrome/renderer/extensions/chrome_app_bindings.cc
index f2b8638..c13e497 100644
--- a/chrome/renderer/extensions/chrome_app_bindings.cc
+++ b/chrome/renderer/extensions/chrome_app_bindings.cc
@@ -14,13 +14,14 @@
#include "chrome/common/extensions/extension_set.h"
#include "chrome/renderer/extensions/extension_dispatcher.h"
#include "chrome/renderer/extensions/extension_helper.h"
+#include "content/public/renderer/v8_value_converter.h"
#include "content/renderer/render_view.h"
-#include "content/renderer/v8_value_converter.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h"
#include "v8/include/v8.h"
using WebKit::WebFrame;
+using content::V8ValueConverter;
namespace {
@@ -174,8 +175,8 @@ class ChromeAppExtensionWrapper : public v8::Extension {
scoped_ptr<DictionaryValue> manifest_copy(
extension->manifest_value()->DeepCopy());
manifest_copy->SetString("id", extension->id());
- V8ValueConverter converter;
- return converter.ToV8Value(manifest_copy.get(),
+ scoped_ptr<V8ValueConverter> converter(V8ValueConverter::create());
+ return converter->ToV8Value(manifest_copy.get(),
frame->mainWorldScriptContext());
}