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

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

Issue 334053003: Moves extension_icon_image and image_loader to extensions/browser (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: polish Created 6 years, 6 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
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 "extensions/browser/component_extension_resource_manager.h"
6
7 #include "base/logging.h"
8
9 namespace extensions {
10
11 namespace {
12
13 ComponentExtensionResourceManager* g_instance = NULL;
14
15 } // namespace
16
17 // static
18 void ComponentExtensionResourceManager::Set(
19 ComponentExtensionResourceManager* manager) {
20 if (g_instance)
21 delete g_instance;
22 g_instance = manager;
23 }
24
25 // static
26 ComponentExtensionResourceManager* ComponentExtensionResourceManager::Get() {
27 DCHECK(g_instance);
28 return g_instance;
29 }
30
31 // static
32 bool ComponentExtensionResourceManager::HasInstance() {
33 return g_instance;
34 }
35
36 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698