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

Unified Diff: chrome/browser/chromeos/extensions/input_method_api.cc

Issue 147923005: Split ExtensionSystem interface from ExtensionSystemImpl implementation, part 1. (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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/extensions/input_method_api.cc
diff --git a/chrome/browser/chromeos/extensions/input_method_api.cc b/chrome/browser/chromeos/extensions/input_method_api.cc
index e4513e0d2b3e4bcaf574a29b313d3727c7812c01..ab911dbe20fbf7dabe9af4aec53718a2fd5b7a76 100644
--- a/chrome/browser/chromeos/extensions/input_method_api.cc
+++ b/chrome/browser/chromeos/extensions/input_method_api.cc
@@ -10,8 +10,8 @@
#include "chrome/browser/extensions/api/input_ime/input_ime_api.h"
#include "chrome/browser/extensions/event_names.h"
#include "chrome/browser/extensions/extension_function_registry.h"
-#include "chrome/browser/extensions/extension_system.h"
#include "chromeos/ime/input_method_manager.h"
+#include "extensions/browser/extension_system.h"
namespace {
@@ -63,7 +63,7 @@ bool StartImeFunction::RunImpl() {
InputMethodAPI::InputMethodAPI(content::BrowserContext* context)
: context_(context) {
- ExtensionSystem::GetForBrowserContext(context_)->event_router()->
+ ExtensionSystem::Get(context_)->event_router()->
RegisterObserver(this, event_names::kOnInputMethodChanged);
ExtensionFunctionRegistry* registry =
ExtensionFunctionRegistry::GetInstance();
@@ -84,7 +84,7 @@ std::string InputMethodAPI::GetInputMethodForXkb(const std::string& xkb_id) {
void InputMethodAPI::Shutdown() {
// UnregisterObserver may have already been called in OnListenerAdded,
// but it is safe to call it more than once.
- ExtensionSystem::GetForBrowserContext(context_)->event_router()->
+ ExtensionSystem::Get(context_)->event_router()->
James Cook 2014/01/28 23:40:57 wrap line
Yoyo Zhou 2014/01/29 00:42:56 Done.
UnregisterObserver(this);
}
@@ -93,7 +93,7 @@ void InputMethodAPI::OnListenerAdded(
DCHECK(!input_method_event_router_.get());
input_method_event_router_.reset(
new chromeos::ExtensionInputMethodEventRouter(context_));
- ExtensionSystem::GetForBrowserContext(context_)->event_router()->
+ ExtensionSystem::Get(context_)->event_router()->
James Cook 2014/01/28 23:40:57 ditto. Maybe git cl format would be useful.
UnregisterObserver(this);
}

Powered by Google App Engine
This is Rietveld 408576698