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

Side by Side Diff: chrome/renderer/automation/dom_automation_v8_extension.cc

Issue 5581008: Add a new GetInstance() method for singleton classes, take 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 10 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698