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

Side by Side Diff: chrome/common/extensions/chrome_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: address comments - 3 Created 4 years, 8 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
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 "chrome/common/extensions/chrome_extensions_client.h" 5 #include "chrome/common/extensions/chrome_extensions_client.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 page_action->default_icon.GetPaths(&image_paths); 371 page_action->default_icon.GetPaths(&image_paths);
372 372
373 const extensions::ActionInfo* browser_action = 373 const extensions::ActionInfo* browser_action =
374 extensions::ActionInfo::GetBrowserActionInfo(extension); 374 extensions::ActionInfo::GetBrowserActionInfo(extension);
375 if (browser_action && !browser_action->default_icon.empty()) 375 if (browser_action && !browser_action->default_icon.empty())
376 browser_action->default_icon.GetPaths(&image_paths); 376 browser_action->default_icon.GetPaths(&image_paths);
377 377
378 return image_paths; 378 return image_paths;
379 } 379 }
380 380
381 bool ChromeExtensionsClient::ExtensionAPIEnabledInExtensionServiceWorkers()
382 const {
383 return GetCurrentChannel() <= version_info::Channel::UNKNOWN;
falken 2016/04/20 02:31:45 Should this just be == UNKNOWN?
lazyboy 2016/04/21 05:52:15 Done.
384 }
385
381 // static 386 // static
382 ChromeExtensionsClient* ChromeExtensionsClient::GetInstance() { 387 ChromeExtensionsClient* ChromeExtensionsClient::GetInstance() {
383 return g_client.Pointer(); 388 return g_client.Pointer();
384 } 389 }
385 390
386 } // namespace extensions 391 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698