OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/renderer/automation/dom_automation_v8_extension.h" | 5 #include "chrome/renderer/automation/dom_automation_v8_extension.h" |
6 | 6 |
7 #include "chrome/renderer/extensions/bindings_utils.h" | 7 #include "chrome/renderer/extensions/bindings_utils.h" |
8 #include "grit/renderer_resources.h" | 8 #include "grit/renderer_resources.h" |
9 | 9 |
10 using bindings_utils::GetStringResource; | 10 using bindings_utils::GetStringResource; |
11 | 11 |
12 const char* DomAutomationV8Extension::kName = "chrome/domautomation"; | 12 const char* DomAutomationV8Extension::kName = "chrome/domautomation"; |
13 | 13 |
14 v8::Extension* DomAutomationV8Extension::Get() { | 14 v8::Extension* DomAutomationV8Extension::Get() { |
15 static v8::Extension* extension = | 15 static v8::Extension* extension = |
16 new bindings_utils::ExtensionBase( | 16 new bindings_utils::ExtensionBase( |
17 kName, GetStringResource<IDR_DOM_AUTOMATION_JS>(), 0, NULL); | 17 kName, GetStringResource(IDR_DOM_AUTOMATION_JS), 0, NULL); |
18 return extension; | 18 return extension; |
19 } | 19 } |
OLD | NEW |