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

Side by Side Diff: chrome/browser/chromeos/extensions/input_method_api.cc

Issue 140613002: Cleanup: Replace &LazyInstance::Get() with LazyInstance::Pointer(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 | Annotate | Revision Log
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 "base/lazy_instance.h" 7 #include "base/lazy_instance.h"
8 #include "base/values.h" 8 #include "base/values.h"
9 #include "chrome/browser/chromeos/extensions/input_method_event_router.h" 9 #include "chrome/browser/chromeos/extensions/input_method_event_router.h"
10 #include "chrome/browser/extensions/api/input_ime/input_ime_api.h" 10 #include "chrome/browser/extensions/api/input_ime/input_ime_api.h"
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 new chromeos::ExtensionInputMethodEventRouter(context_)); 95 new chromeos::ExtensionInputMethodEventRouter(context_));
96 ExtensionSystem::GetForBrowserContext(context_)->event_router()-> 96 ExtensionSystem::GetForBrowserContext(context_)->event_router()->
97 UnregisterObserver(this); 97 UnregisterObserver(this);
98 } 98 }
99 99
100 static base::LazyInstance<ProfileKeyedAPIFactory<InputMethodAPI> > 100 static base::LazyInstance<ProfileKeyedAPIFactory<InputMethodAPI> >
101 g_factory = LAZY_INSTANCE_INITIALIZER; 101 g_factory = LAZY_INSTANCE_INITIALIZER;
102 102
103 // static 103 // static
104 ProfileKeyedAPIFactory<InputMethodAPI>* InputMethodAPI::GetFactoryInstance() { 104 ProfileKeyedAPIFactory<InputMethodAPI>* InputMethodAPI::GetFactoryInstance() {
105 return &g_factory.Get(); 105 return g_factory.Pointer();
106 } 106 }
107 107
108 } // namespace extensions 108 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/app/chrome_main_delegate.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