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

Side by Side Diff: chrome/browser/chromeos/input_method/input_method_manager.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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chromeos/input_method/input_method_manager.h" 5 #include "chrome/browser/chromeos/input_method/input_method_manager.h"
6 6
7 #include "chrome/browser/chromeos/input_method/input_method_manager_impl.h" 7 #include "chrome/browser/chromeos/input_method/input_method_manager_impl.h"
8 8
9 namespace chromeos { 9 namespace chromeos {
10 namespace input_method { 10 namespace input_method {
11 11
12 namespace { 12 namespace {
13 InputMethodManager* g_input_method_manager = NULL; 13 InputMethodManager* g_input_method_manager = NULL;
14 } // namespace 14 } // namespace
15 15
16 // static 16 // static
17 void InputMethodManager::Initialize() { 17 void InputMethodManager::Initialize() {
18 DCHECK(!g_input_method_manager); 18 DCHECK(!g_input_method_manager);
19 InputMethodManagerImpl* impl = new InputMethodManagerImpl; 19 InputMethodManagerImpl* impl = new InputMethodManagerImpl;
20 impl->Init(); 20 impl->Init();
21 g_input_method_manager = impl; 21 g_input_method_manager = impl;
22 VLOG(1) << "InputMethodManager initialized"; 22 DVLOG(1) << "InputMethodManager initialized";
23 } 23 }
24 24
25 // static 25 // static
26 void InputMethodManager::InitializeForTesting( 26 void InputMethodManager::InitializeForTesting(
27 InputMethodManager* mock_manager) { 27 InputMethodManager* mock_manager) {
28 DCHECK(!g_input_method_manager); 28 DCHECK(!g_input_method_manager);
29 g_input_method_manager = mock_manager; 29 g_input_method_manager = mock_manager;
30 VLOG(1) << "InputMethodManager for testing initialized"; 30 DVLOG(1) << "InputMethodManager for testing initialized";
31 } 31 }
32 32
33 // static 33 // static
34 void InputMethodManager::Shutdown() { 34 void InputMethodManager::Shutdown() {
35 delete g_input_method_manager; 35 delete g_input_method_manager;
36 g_input_method_manager = NULL; 36 g_input_method_manager = NULL;
37 VLOG(1) << "InputMethodManager shutdown"; 37 DVLOG(1) << "InputMethodManager shutdown";
38 } 38 }
39 39
40 // static 40 // static
41 InputMethodManager* InputMethodManager::GetInstance() { 41 InputMethodManager* InputMethodManager::GetInstance() {
42 DCHECK(g_input_method_manager); 42 DCHECK(g_input_method_manager);
43 return g_input_method_manager; 43 return g_input_method_manager;
44 } 44 }
45 45
46 } // namespace input_method 46 } // namespace input_method
47 } // namespace chromeos 47 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698