OLD | NEW |
---|---|
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 Loading... | |
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 |
OLD | NEW |