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

Side by Side Diff: extensions/shell/browser/desktop_controller.cc

Issue 2561963002: base: Remove the string logging from CHECK(). (Closed)
Patch Set: checkstring: rebase Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "extensions/shell/browser/desktop_controller.h" 5 #include "extensions/shell/browser/desktop_controller.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/macros.h" 8 #include "base/macros.h"
9 9
10 namespace extensions { 10 namespace extensions {
11 namespace { 11 namespace {
12 12
13 DesktopController* g_instance = NULL; 13 DesktopController* g_instance = NULL;
14 14
15 } // namespace 15 } // namespace
16 16
17 // static 17 // static
18 DesktopController* DesktopController::instance() { 18 DesktopController* DesktopController::instance() {
19 return g_instance; 19 return g_instance;
20 } 20 }
21 21
22 DesktopController::DesktopController() { 22 DesktopController::DesktopController() {
23 CHECK(!g_instance) << "DesktopController already exists"; 23 // DesktopController already exists
24 CHECK(!g_instance);
24 g_instance = this; 25 g_instance = this;
25 } 26 }
26 27
27 DesktopController::~DesktopController() { 28 DesktopController::~DesktopController() {
28 DCHECK(g_instance); 29 DCHECK(g_instance);
29 g_instance = NULL; 30 g_instance = NULL;
30 } 31 }
31 32
32 } // namespace extensions 33 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698