Close crashed incognito-mode app's shell window.
[chromium-blink-merge.git] / apps / apps_client.cc
blobdbdb5466771734d5cd4f2da57b4d2eefd4bce29a
1 // Copyright 2013 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.
5 #include "apps/apps_client.h"
7 #include "base/basictypes.h"
9 namespace apps {
11 namespace {
13 AppsClient* g_client = NULL;
15 } // namespace
17 AppsClient* AppsClient::Get() {
18 return g_client;
21 void AppsClient::Set(AppsClient* client) {
22 // This can happen in unit tests, where the utility thread runs in-process.
23 if (g_client)
24 return;
26 g_client = client;
29 } // namespace apps