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

Side by Side Diff: chrome/browser/extensions/api/devtools/devtools_api_factory.cc

Issue 11624036: Move the parsing of homepage_url" and "devtools_page" out of Extension. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 8 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
(Empty)
1 // Copyright (c) 2012 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/devtools/devtools_api_factory.h"
6
7 #include "chrome/browser/extensions/api/devtools/devtools_api.h"
8 #include "chrome/browser/profiles/profile_dependency_manager.h"
9
10 namespace extensions {
11
12 // static
13 DevtoolsAPIFactory* DevtoolsAPIFactory::GetInstance() {
14 return Singleton<DevtoolsAPIFactory>::get();
15 }
16
17 DevtoolsAPIFactory::DevtoolsAPIFactory()
18 : ProfileKeyedServiceFactory("DevtoolsAPI",
19 ProfileDependencyManager::GetInstance()) {
20 }
21
22 DevtoolsAPIFactory::~DevtoolsAPIFactory() {
23 }
24
25 ProfileKeyedService* DevtoolsAPIFactory::BuildServiceInstanceFor(
26 Profile* profile) const {
27 return new DevtoolsAPI(profile);
28 }
29
30 bool DevtoolsAPIFactory::ServiceIsCreatedWithProfile() const {
31 return true;
32 }
33
34 bool DevtoolsAPIFactory::ServiceIsNULLWhileTesting() const {
35 return true;
36 }
37
38 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698