| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/command.h" | 5 #include "chrome/common/extensions/command.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/strings/string_number_conversions.h" | 8 #include "base/strings/string_number_conversions.h" |
| 9 #include "base/strings/string_split.h" | 9 #include "base/strings/string_split.h" |
| 10 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
| 11 #include "base/values.h" | 11 #include "base/values.h" |
| 12 #include "chrome/common/chrome_version_info.h" // TODO(finnur): Remove. | 12 #include "chrome/common/chrome_version_info.h" // TODO(finnur): Remove. |
| 13 #include "chrome/common/extensions/extension.h" | 13 #include "chrome/common/extensions/extension.h" |
| 14 #include "chrome/common/extensions/feature_switch.h" | |
| 15 #include "extensions/common/error_utils.h" | 14 #include "extensions/common/error_utils.h" |
| 15 #include "extensions/common/feature_switch.h" |
| 16 #include "extensions/common/manifest_constants.h" | 16 #include "extensions/common/manifest_constants.h" |
| 17 #include "grit/generated_resources.h" | 17 #include "grit/generated_resources.h" |
| 18 #include "ui/base/l10n/l10n_util.h" | 18 #include "ui/base/l10n/l10n_util.h" |
| 19 | 19 |
| 20 namespace extensions { | 20 namespace extensions { |
| 21 | 21 |
| 22 namespace errors = manifest_errors; | 22 namespace errors = manifest_errors; |
| 23 namespace keys = manifest_keys; | 23 namespace keys = manifest_keys; |
| 24 namespace values = manifest_values; | 24 namespace values = manifest_values; |
| 25 | 25 |
| (...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 538 // dev and will be removed when we launch. | 538 // dev and will be removed when we launch. |
| 539 static bool stable_or_beta = | 539 static bool stable_or_beta = |
| 540 chrome::VersionInfo::GetChannel() >= chrome::VersionInfo::CHANNEL_BETA; | 540 chrome::VersionInfo::GetChannel() >= chrome::VersionInfo::CHANNEL_BETA; |
| 541 extension_data->SetBoolean("scope_ui_visible", !stable_or_beta); | 541 extension_data->SetBoolean("scope_ui_visible", !stable_or_beta); |
| 542 } | 542 } |
| 543 | 543 |
| 544 return extension_data; | 544 return extension_data; |
| 545 } | 545 } |
| 546 | 546 |
| 547 } // namespace extensions | 547 } // namespace extensions |
| OLD | NEW |