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

Side by Side Diff: chrome/browser/chromeos/extensions/input_method_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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/browser/chromeos/extensions/input_method_api.h" 5 #include "chrome/browser/chromeos/extensions/input_method_api.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <memory> 8 #include <memory>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 } 360 }
361 } else if ((details.event_name == OnImeMenuActivationChanged::kEventName || 361 } else if ((details.event_name == OnImeMenuActivationChanged::kEventName ||
362 details.event_name == OnImeMenuListChanged::kEventName || 362 details.event_name == OnImeMenuListChanged::kEventName ||
363 details.event_name == OnImeMenuItemsChanged::kEventName) && 363 details.event_name == OnImeMenuItemsChanged::kEventName) &&
364 !ime_menu_event_router_.get()) { 364 !ime_menu_event_router_.get()) {
365 ime_menu_event_router_.reset( 365 ime_menu_event_router_.reset(
366 new chromeos::ExtensionImeMenuEventRouter(context_)); 366 new chromeos::ExtensionImeMenuEventRouter(context_));
367 } 367 }
368 } 368 }
369 369
370 static base::LazyInstance<BrowserContextKeyedAPIFactory<InputMethodAPI> > 370 static base::LazyInstance<
371 g_factory = LAZY_INSTANCE_INITIALIZER; 371 BrowserContextKeyedAPIFactory<InputMethodAPI>>::DestructorAtExit g_factory =
372 LAZY_INSTANCE_INITIALIZER;
372 373
373 // static 374 // static
374 BrowserContextKeyedAPIFactory<InputMethodAPI>* 375 BrowserContextKeyedAPIFactory<InputMethodAPI>*
375 InputMethodAPI::GetFactoryInstance() { 376 InputMethodAPI::GetFactoryInstance() {
376 return g_factory.Pointer(); 377 return g_factory.Pointer();
377 } 378 }
378 379
379 } // namespace extensions 380 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/extensions/gfx_utils.cc ('k') | chrome/browser/chromeos/extensions/media_player_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698