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

Side by Side Diff: extensions/common/extensions_client.cc

Issue 1880933002: Begin to enable extension APIs in Extension Service Worker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sync @tott Created 4 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
« no previous file with comments | « extensions/common/extensions_client.h ('k') | extensions/common/features/simple_feature.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/common/extensions_client.h" 5 #include "extensions/common/extensions_client.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "extensions/common/extension_icon_set.h" 8 #include "extensions/common/extension_icon_set.h"
9 #include "extensions/common/manifest_handlers/icons_handler.h" 9 #include "extensions/common/manifest_handlers/icons_handler.h"
10 10
(...skipping 10 matching lines...) Expand all
21 return g_client; 21 return g_client;
22 } 22 }
23 23
24 std::set<base::FilePath> ExtensionsClient::GetBrowserImagePaths( 24 std::set<base::FilePath> ExtensionsClient::GetBrowserImagePaths(
25 const Extension* extension) { 25 const Extension* extension) {
26 std::set<base::FilePath> paths; 26 std::set<base::FilePath> paths;
27 extensions::IconsInfo::GetIcons(extension).GetPaths(&paths); 27 extensions::IconsInfo::GetIcons(extension).GetPaths(&paths);
28 return paths; 28 return paths;
29 } 29 }
30 30
31 bool ExtensionsClient::ExtensionAPIEnabledInExtensionServiceWorkers() const {
32 return false;
33 }
34
31 void ExtensionsClient::Set(ExtensionsClient* client) { 35 void ExtensionsClient::Set(ExtensionsClient* client) {
32 // This can happen in unit tests, where the utility thread runs in-process. 36 // This can happen in unit tests, where the utility thread runs in-process.
33 if (g_client) 37 if (g_client)
34 return; 38 return;
35 g_client = client; 39 g_client = client;
36 g_client->Initialize(); 40 g_client->Initialize();
37 } 41 }
38 42
39 } // namespace extensions 43 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/common/extensions_client.h ('k') | extensions/common/features/simple_feature.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698