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

Unified Diff: chrome/common/extensions/command.cc

Issue 44553002: Enabling Commands API for Apps (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix test Created 7 years, 2 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/common/extensions/command.cc
diff --git a/chrome/common/extensions/command.cc b/chrome/common/extensions/command.cc
index a1216abe8eabbc67773b38e16971509f16a7cfe4..5dbb96df0e0466598f772a88f11063e20c712737 100644
--- a/chrome/common/extensions/command.cc
+++ b/chrome/common/extensions/command.cc
@@ -438,7 +438,9 @@ bool Command::Parse(const base::DictionaryValue* command,
// Check if this is a global or a regular shortcut.
bool global = false;
- command->GetBoolean(keys::kGlobal, &global);
+ if (FeatureSwitch::global_commands()->IsEnabled() &&
+ chrome::VersionInfo::GetChannel() <= chrome::VersionInfo::CHANNEL_DEV)
Yoyo Zhou 2013/10/30 17:02:48 This channel check should not be necessary. It loo
+ command->GetBoolean(keys::kGlobal, &global);
// Normalize the suggestions.
for (SuggestionMap::iterator iter = suggestions.begin();

Powered by Google App Engine
This is Rietveld 408576698