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

Side by Side Diff: extensions/browser/extensions_browser_client.cc

Issue 56253002: Move ExtensionsProcessManager to src/extensions, part 2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup Created 7 years, 1 month 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
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 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/extensions_browser_client.h" 5 #include "extensions/browser/extensions_browser_client.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 8
9 namespace extensions { 9 namespace extensions {
10 10
11 namespace { 11 namespace {
12 12
13 ExtensionsBrowserClient* g_client = NULL; 13 ExtensionsBrowserClient* g_client = NULL;
14 14
15 } // namespace 15 } // namespace
16 16
17 ExtensionsBrowserClient* ExtensionsBrowserClient::Get() { 17 ExtensionsBrowserClient* ExtensionsBrowserClient::Get() {
18 return g_client; 18 return g_client;
19 } 19 }
20 20
21 void ExtensionsBrowserClient::Set(ExtensionsBrowserClient* client) { 21 void ExtensionsBrowserClient::Set(ExtensionsBrowserClient* client) {
22 // This can happen in tests.
Yoyo Zhou 2013/11/01 22:54:06 I assume this was just copied over from Extensions
James Cook 2013/11/04 19:06:19 This should be OK here - the case in ExtensionsCli
23 if (g_client)
24 return;
25 g_client = client; 22 g_client = client;
26 } 23 }
27 24
28 } // namespace extensions 25 } // namespace extensions
OLDNEW
« chrome/test/base/chrome_test_suite.cc ('K') | « chrome/test/base/chrome_test_suite.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698