From c7b8942c578f4b1ae755e698e3113739e3b27de4 Mon Sep 17 00:00:00 2001 From: "finnur@chromium.org" Date: Sat, 12 Apr 2014 12:13:00 +0000 Subject: Merge 261734 "Fix unit test failure on official bots." > Fix unit test failure on official bots. > > The API this test is exercising has not been release on all channels. > > BUG=359794 > R=battre@chromium.org > > Review URL: https://codereview.chromium.org/225883002 TBR=finnur@chromium.org Review URL: https://codereview.chromium.org/227433020 git-svn-id: svn://svn.chromium.org/chrome/branches/1916/src@263519 0039d316-1c4b-4281-b951-d872f2087c98 --- .../extensions/extension_message_bubble_controller_unittest.cc | 6 ++++++ chrome/common/extensions/api/_manifest_features.json | 2 ++ 2 files changed, 8 insertions(+) diff --git a/chrome/browser/extensions/extension_message_bubble_controller_unittest.cc b/chrome/browser/extensions/extension_message_bubble_controller_unittest.cc index f84e31a..3f2c5dd 100644 --- a/chrome/browser/extensions/extension_message_bubble_controller_unittest.cc +++ b/chrome/browser/extensions/extension_message_bubble_controller_unittest.cc @@ -12,6 +12,7 @@ #include "chrome/browser/extensions/settings_api_bubble_controller.h" #include "chrome/browser/extensions/suspicious_extension_bubble_controller.h" #include "chrome/browser/extensions/test_extension_system.h" +#include "chrome/common/chrome_version_info.h" #include "chrome/test/base/testing_profile.h" #include "content/public/test/test_browser_thread_bundle.h" #include "extensions/common/extension.h" @@ -465,6 +466,11 @@ TEST_F(ExtensionMessageBubbleTest, MAYBE_DevModeControllerTest) { #endif TEST_F(ExtensionMessageBubbleTest, MAYBE_SettingsApiControllerTest) { + // The API this test is exercising has not been release on all channels. + // TODO(finnur): Remove the if check once it is released. + if (chrome::VersionInfo::GetChannel() > chrome::VersionInfo::CHANNEL_DEV) + return; + Init(); extensions::ExtensionPrefs* prefs = extensions::ExtensionPrefs::Get(profile()); diff --git a/chrome/common/extensions/api/_manifest_features.json b/chrome/common/extensions/api/_manifest_features.json index 670bed0..35cfcc6 100644 --- a/chrome/common/extensions/api/_manifest_features.json +++ b/chrome/common/extensions/api/_manifest_features.json @@ -79,6 +79,8 @@ "channel": "stable", "extension_types": ["extension"] }, + // TODO(finnur): Remove channel check for SettingsApiControllerTest when this + // goes to stable. "chrome_settings_overrides": [{ "channel": "dev", "extension_types": ["extension"], -- cgit v1.1