Index: chrome/browser/chromeos/status/input_method_menu_button.cc |
diff --git a/chrome/browser/chromeos/status/input_method_menu_button.cc b/chrome/browser/chromeos/status/input_method_menu_button.cc |
index ba17067583329a25845a85392697627ed21f2484..46db154394779f98168275d074824887ae37ef83 100644 |
--- a/chrome/browser/chromeos/status/input_method_menu_button.cc |
+++ b/chrome/browser/chromeos/status/input_method_menu_button.cc |
@@ -10,8 +10,6 @@ |
#include "chrome/browser/chromeos/input_method/input_method_manager.h" |
#include "chrome/browser/chromeos/input_method/input_method_util.h" |
#include "chrome/browser/chromeos/status/status_area_view_chromeos.h" |
-#include "chrome/browser/prefs/pref_service.h" |
-#include "chrome/browser/profiles/profile_manager.h" |
#include "chrome/browser/ui/browser.h" |
#include "chrome/browser/ui/browser_list.h" |
#include "chrome/browser/ui/browser_window.h" |
@@ -19,20 +17,12 @@ |
namespace { |
-PrefService* GetPrefService() { |
- Profile* profile = ProfileManager::GetDefaultProfile(); |
- if (profile) |
- return profile->GetPrefs(); |
- return NULL; |
-} |
- |
// A class which implements interfaces of chromeos::InputMethodMenu. This class |
// is just for avoiding multiple inheritance. |
class MenuImpl : public chromeos::InputMethodMenu { |
public: |
- MenuImpl(chromeos::InputMethodMenuButton* button, |
- PrefService* pref_service) |
- : InputMethodMenu(pref_service, false), button_(button) {} |
+ explicit MenuImpl(chromeos::InputMethodMenuButton* button) |
+ : InputMethodMenu(false), button_(button) {} |
private: |
// InputMethodMenu implementation. |
@@ -64,7 +54,7 @@ namespace chromeos { |
InputMethodMenuButton::InputMethodMenuButton( |
StatusAreaButton::Delegate* delegate) |
: StatusAreaButton(delegate, this), |
- menu_(new MenuImpl(this, GetPrefService())) { |
+ menu_(new MenuImpl(this)) { |
set_id(VIEW_ID_STATUS_BUTTON_INPUT_METHOD); |
UpdateUIFromCurrentInputMethod(); |
} |