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

Side by Side Diff: apps/ui/apps_client.cc

Issue 494033002: Move AppWindow to extensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove unneeded include in chrome_shell_delegate.cc 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
« no previous file with comments | « apps/ui/apps_client.h ('k') | apps/ui/views/native_app_window_views.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "apps/ui/apps_client.h"
6
7 #include "base/basictypes.h"
8
9 namespace apps {
10
11 namespace {
12
13 AppsClient* g_client = NULL;
14
15 } // namespace
16
17 AppsClient* AppsClient::Get() {
18 return g_client;
19 }
20
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;
25
26 g_client = client;
27 }
28
29 } // namespace apps
OLDNEW
« no previous file with comments | « apps/ui/apps_client.h ('k') | apps/ui/views/native_app_window_views.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698