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

Side by Side Diff: extensions/browser/app_window/app_window_client.cc

Issue 1549643002: Switch to standard integer types in extensions/browser/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@clean
Patch Set: Created 5 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/browser/app_window/app_window_client.h" 5 #include "extensions/browser/app_window/app_window_client.h"
6 6
7 #include "base/basictypes.h"
8 7
9 namespace extensions { 8 namespace extensions {
10 9
11 namespace { 10 namespace {
12 11
13 AppWindowClient* g_client = NULL; 12 AppWindowClient* g_client = NULL;
14 13
15 } // namespace 14 } // namespace
16 15
17 AppWindowClient* AppWindowClient::Get() { 16 AppWindowClient* AppWindowClient::Get() {
18 return g_client; 17 return g_client;
19 } 18 }
20 19
21 void AppWindowClient::Set(AppWindowClient* client) { 20 void AppWindowClient::Set(AppWindowClient* client) {
22 // This can happen in unit tests, where the utility thread runs in-process. 21 // This can happen in unit tests, where the utility thread runs in-process.
23 if (g_client) 22 if (g_client)
24 return; 23 return;
25 24
26 g_client = client; 25 g_client = client;
27 } 26 }
28 27
29 } // namespace extensions 28 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/browser/app_window/app_window_browsertest.cc ('k') | extensions/browser/app_window/app_window_contents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698