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

Unified Diff: chrome/browser/chromeos/input_method/input_method_manager.cc

Issue 11415266: Extract a delegate interface from c/b/input_method to permit decoupling from c/b. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Class comment. Created 8 years 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/input_method/input_method_manager.cc
diff --git a/chrome/browser/chromeos/input_method/input_method_manager.cc b/chrome/browser/chromeos/input_method/input_method_manager.cc
index 1afd41303bdd260df7fb2f3661a96a4cf5944556..1abf167c5944b170979316fcad110211ac18a992 100644
--- a/chrome/browser/chromeos/input_method/input_method_manager.cc
+++ b/chrome/browser/chromeos/input_method/input_method_manager.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/chromeos/input_method/input_method_manager.h"
+#include "chrome/browser/chromeos/input_method/input_method_delegate_impl.h"
#include "chrome/browser/chromeos/input_method/input_method_manager_impl.h"
namespace chromeos {
@@ -16,7 +17,8 @@ InputMethodManager* g_input_method_manager = NULL;
// static
void InputMethodManager::Initialize() {
DCHECK(!g_input_method_manager);
- InputMethodManagerImpl* impl = new InputMethodManagerImpl;
+ InputMethodManagerImpl* impl = new InputMethodManagerImpl(
+ scoped_ptr<InputMethodDelegate>(new InputMethodDelegateImpl));
impl->Init();
g_input_method_manager = impl;
DVLOG(1) << "InputMethodManager initialized";

Powered by Google App Engine
This is Rietveld 408576698