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

Side by Side Diff: extensions/browser/api/virtual_keyboard_private/virtual_keyboard_private_api.cc

Issue 2733283002: Require explicit selection of traits for LazyInstance (Closed)
Patch Set: l10n again Created 3 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "extensions/browser/api/virtual_keyboard_private/virtual_keyboard_priva te_api.h" 5 #include "extensions/browser/api/virtual_keyboard_private/virtual_keyboard_priva te_api.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 return RespondNow(NoArguments()); 143 return RespondNow(NoArguments());
144 } 144 }
145 145
146 VirtualKeyboardAPI::VirtualKeyboardAPI(content::BrowserContext* context) { 146 VirtualKeyboardAPI::VirtualKeyboardAPI(content::BrowserContext* context) {
147 delegate_ = ExtensionsAPIClient::Get()->CreateVirtualKeyboardDelegate(); 147 delegate_ = ExtensionsAPIClient::Get()->CreateVirtualKeyboardDelegate();
148 } 148 }
149 149
150 VirtualKeyboardAPI::~VirtualKeyboardAPI() { 150 VirtualKeyboardAPI::~VirtualKeyboardAPI() {
151 } 151 }
152 152
153 static base::LazyInstance<BrowserContextKeyedAPIFactory<VirtualKeyboardAPI>> 153 static base::LazyInstance<BrowserContextKeyedAPIFactory<VirtualKeyboardAPI>>::
154 g_factory = LAZY_INSTANCE_INITIALIZER; 154 DestructorAtExit g_factory = LAZY_INSTANCE_INITIALIZER;
155 155
156 // static 156 // static
157 BrowserContextKeyedAPIFactory<VirtualKeyboardAPI>* 157 BrowserContextKeyedAPIFactory<VirtualKeyboardAPI>*
158 VirtualKeyboardAPI::GetFactoryInstance() { 158 VirtualKeyboardAPI::GetFactoryInstance() {
159 return g_factory.Pointer(); 159 return g_factory.Pointer();
160 } 160 }
161 161
162 } // namespace extensions 162 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/browser/api/usb/usb_device_resource.cc ('k') | extensions/browser/api/web_request/web_request_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698