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

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

Issue 480353006: Separate athena's startup process from AppShell's (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 3 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "extensions/shell/browser/desktop_controller.h"
6
7 #include "base/logging.h"
8 #include "base/macros.h"
9
10 namespace extensions {
11 namespace {
12
13 DesktopController* g_instance = NULL;
14
15 } // namespace
16
17 // static
18 DesktopController* DesktopController::instance() {
19 return g_instance;
20 }
21
22 DesktopController::DesktopController() {
23 CHECK(!g_instance) << "DesktopController already exists";
24 g_instance = this;
25 }
26
27 DesktopController::~DesktopController() {
28 DCHECK(g_instance);
29 g_instance = NULL;
30 }
31
32 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/shell/browser/desktop_controller.h ('k') | extensions/shell/browser/shell_browser_main_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698