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

Unified Diff: chrome/browser/extensions/api/commands/command_service.cc

Issue 350943003: Support global keyboard commands on Chrome OS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Test updates Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/commands/command_service.cc
diff --git a/chrome/browser/extensions/api/commands/command_service.cc b/chrome/browser/extensions/api/commands/command_service.cc
index 74d3b6a66ee0bb464a4d35644f22ee213378ba6a..3656f4b98830ca5dbfcde76a2b77127600157e38 100644
--- a/chrome/browser/extensions/api/commands/command_service.cc
+++ b/chrome/browser/extensions/api/commands/command_service.cc
@@ -361,8 +361,7 @@ Command CommandService::FindCommandByName(const std::string& extension_id,
if (!IsForCurrentPlatform(shortcut))
continue;
bool global = false;
- if (FeatureSwitch::global_commands()->IsEnabled())
- item->GetBoolean(kGlobal, &global);
+ item->GetBoolean(kGlobal, &global);
std::vector<std::string> tokens;
base::SplitString(shortcut, ':', &tokens);
« no previous file with comments | « ash/accelerators/accelerator_controller.cc ('k') | chrome/browser/extensions/extension_commands_global_registry_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698