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

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

Issue 10109001: Replace all LOGs in input_method/, except two user-facing errors, to DVLOG(1). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 8 years, 8 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 | « no previous file | chrome/browser/chromeos/input_method/candidate_window.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/input_method/browser_state_monitor.cc
diff --git a/chrome/browser/chromeos/input_method/browser_state_monitor.cc b/chrome/browser/chromeos/input_method/browser_state_monitor.cc
index 8edf28ea56ee6533a3bc2dea27bf01bb83ed7fb5..eb6be5de7cef02de368384fb2c7d75aa544d4216 100644
--- a/chrome/browser/chromeos/input_method/browser_state_monitor.cc
+++ b/chrome/browser/chromeos/input_method/browser_state_monitor.cc
@@ -80,13 +80,13 @@ void BrowserStateMonitor::UpdateUserPreferences(
void BrowserStateMonitor::InputMethodChanged(InputMethodManager* manager) {
DCHECK_EQ(manager_, manager);
const std::string current_input_method =
- manager->GetCurrentInputMethod().id();
+ manager->GetCurrentInputMethod().id();
// Save the new input method id depending on the current browser state.
switch (state_) {
case InputMethodManager::STATE_LOGIN_SCREEN:
if (!InputMethodUtil::IsKeyboardLayout(current_input_method)) {
- LOG(ERROR) << "Only keyboard layouts are supported: "
- << current_input_method;
+ DVLOG(1) << "Only keyboard layouts are supported: "
+ << current_input_method;
return;
}
UpdateLocalState(current_input_method);
@@ -121,7 +121,7 @@ void BrowserStateMonitor::Observe(
// Note that the notification is also sent when Chrome crashes/restarts
// as of writing, but it might be changed in the future (therefore we need
// to listen to NOTIFICATION_SESSION_STARTED as well.)
- VLOG(1) << "Received chrome::NOTIFICATION_LOGIN_USER_CHANGED";
+ DVLOG(1) << "Received chrome::NOTIFICATION_LOGIN_USER_CHANGED";
SetState(InputMethodManager::STATE_BROWSER_SCREEN);
break;
}
@@ -131,7 +131,7 @@ void BrowserStateMonitor::Observe(
// We should NOT call InitializePrefMembers() here since the notification
// is sent in the PreProfileInit phase in case when Chrome crashes and
// restarts.
- VLOG(1) << "Received chrome::NOTIFICATION_SESSION_STARTED";
+ DVLOG(1) << "Received chrome::NOTIFICATION_SESSION_STARTED";
SetState(InputMethodManager::STATE_BROWSER_SCREEN);
break;
}
« no previous file with comments | « no previous file | chrome/browser/chromeos/input_method/candidate_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698