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

Side by Side Diff: chrome/browser/extensions/api/system_indicator/system_indicator_api.cc

Issue 12618009: Move SystemIndicator parsing out of Extension class (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 9 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
OLDNEW
(Empty)
1 // Copyright (c) 2013 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 "chrome/browser/extensions/api/system_indicator/system_indicator_api.h"
6
7 #include "base/lazy_instance.h"
8 #include "chrome/browser/profiles/profile.h"
9 #include "chrome/common/extensions/api/system_indicator/system_indicator_handler .h"
10
11 namespace extensions {
12
13 SystemIndicatorAPI::SystemIndicatorAPI(Profile* profile) {
14 (new SystemIndicatorHandler)->Register();
15 }
16
17 SystemIndicatorAPI::~SystemIndicatorAPI() {
18 }
19
20 static base::LazyInstance<ProfileKeyedAPIFactory<SystemIndicatorAPI> >
21 g_factory = LAZY_INSTANCE_INITIALIZER;
22
23 // static
24 ProfileKeyedAPIFactory<SystemIndicatorAPI>*
25 SystemIndicatorAPI::GetFactoryInstance() {
26 return &g_factory.Get();
27 }
28
29 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698