Update V8 to version 4.7.16.
[chromium-blink-merge.git] / extensions / browser / app_window / app_window_client.cc
blobdf9baeac8281cf5d1e31021c505d9bf40f67ba1e
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.
5 #include "extensions/browser/app_window/app_window_client.h"
7 #include "base/basictypes.h"
9 namespace extensions {
11 namespace {
13 AppWindowClient* g_client = NULL;
15 } // namespace
17 AppWindowClient* AppWindowClient::Get() {
18 return g_client;
21 void AppWindowClient::Set(AppWindowClient* 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 extensions