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

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

Issue 178193030: Rename ProfileKeyedAPI to BrowserContextKeyedAPI and GetProfile to Get. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits Created 6 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 | 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 } 88 }
89 89
90 void InputMethodAPI::OnListenerAdded( 90 void InputMethodAPI::OnListenerAdded(
91 const extensions::EventListenerInfo& details) { 91 const extensions::EventListenerInfo& details) {
92 DCHECK(!input_method_event_router_.get()); 92 DCHECK(!input_method_event_router_.get());
93 input_method_event_router_.reset( 93 input_method_event_router_.reset(
94 new chromeos::ExtensionInputMethodEventRouter(context_)); 94 new chromeos::ExtensionInputMethodEventRouter(context_));
95 ExtensionSystem::Get(context_)->event_router()->UnregisterObserver(this); 95 ExtensionSystem::Get(context_)->event_router()->UnregisterObserver(this);
96 } 96 }
97 97
98 static base::LazyInstance<ProfileKeyedAPIFactory<InputMethodAPI> > 98 static base::LazyInstance<BrowserContextKeyedAPIFactory<InputMethodAPI> >
99 g_factory = LAZY_INSTANCE_INITIALIZER; 99 g_factory = LAZY_INSTANCE_INITIALIZER;
100 100
101 // static 101 // static
102 ProfileKeyedAPIFactory<InputMethodAPI>* InputMethodAPI::GetFactoryInstance() { 102 BrowserContextKeyedAPIFactory<InputMethodAPI>*
103 InputMethodAPI::GetFactoryInstance() {
103 return g_factory.Pointer(); 104 return g_factory.Pointer();
104 } 105 }
105 106
106 } // namespace extensions 107 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/extensions/input_method_api.h ('k') | chrome/browser/chromeos/extensions/media_player_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698