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

Unified Diff: chrome/browser/ui/ash/system_tray_delegate_chromeos.cc

Issue 167793002: Removes --disable-ime-mode-indicator flag. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 10 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
« no previous file with comments | « chrome/browser/chromeos/input_method/mode_indicator_controller.cc ('k') | chromeos/chromeos_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/ash/system_tray_delegate_chromeos.cc
diff --git a/chrome/browser/ui/ash/system_tray_delegate_chromeos.cc b/chrome/browser/ui/ash/system_tray_delegate_chromeos.cc
index 5b6ec0add74368210ac8e62e79d4b30079800d65..43e07a82188e0f7e3441f976f94c0419f6a2447b 100644
--- a/chrome/browser/ui/ash/system_tray_delegate_chromeos.cc
+++ b/chrome/browser/ui/ash/system_tray_delegate_chromeos.cc
@@ -36,7 +36,6 @@
#include "ash/wm/lock_state_controller.h"
#include "base/bind_helpers.h"
#include "base/callback.h"
-#include "base/command_line.h"
#include "base/logging.h"
#include "base/memory/weak_ptr.h"
#include "base/prefs/pref_service.h"
@@ -91,7 +90,6 @@
#include "chrome/browser/upgrade_detector.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/url_constants.h"
-#include "chromeos/chromeos_switches.h"
#include "chromeos/dbus/dbus_thread_manager.h"
#include "chromeos/dbus/session_manager_client.h"
#include "chromeos/ime/extension_ime_util.h"
@@ -1194,20 +1192,13 @@ void SystemTrayDelegateChromeOS::UpdatePerformanceTracing() {
void SystemTrayDelegateChromeOS::InputMethodChanged(
input_method::InputMethodManager* manager,
bool show_message) {
- // |show_message| in ash means the message_center notifications
- // which should not be shown unless kDisableIMEModeIndicator is
- // on, since the mode indicator already notifies the user.
- if (!CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kDisableIMEModeIndicator)) {
- show_message = false;
- }
- GetSystemTrayNotifier()->NotifyRefreshIME(show_message);
+ GetSystemTrayNotifier()->NotifyRefreshIME();
}
// Overridden from InputMethodMenuManager::Observer.
void SystemTrayDelegateChromeOS::InputMethodMenuItemChanged(
ash::ime::InputMethodMenuManager* manager) {
- GetSystemTrayNotifier()->NotifyRefreshIME(false);
+ GetSystemTrayNotifier()->NotifyRefreshIME();
}
// drive::JobListObserver overrides.
« no previous file with comments | « chrome/browser/chromeos/input_method/mode_indicator_controller.cc ('k') | chromeos/chromeos_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698