Fix browser test to work with dynamic CLD

BUG=367239

Review URL: https://codereview.chromium.org/290413002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@271811 0039d316-1c4b-4281-b951-d872f2087c98
parent 301a2ca9
......@@ -56,6 +56,7 @@
#include "chrome/browser/search_engines/template_url.h"
#include "chrome/browser/search_engines/template_url_service.h"
#include "chrome/browser/search_engines/template_url_service_factory.h"
#include "chrome/browser/translate/translate_browser_test_utils.h"
#include "chrome/browser/translate/translate_infobar_delegate.h"
#include "chrome/browser/translate/translate_service.h"
#include "chrome/browser/translate/translate_tab_helper.h"
......@@ -1862,6 +1863,8 @@ IN_PROC_BROWSER_TEST_F(PolicyTest, SavingBrowserHistoryDisabled) {
// http://crbug.com/241691 PolicyTest.TranslateEnabled is failing regularly.
IN_PROC_BROWSER_TEST_F(PolicyTest, DISABLED_TranslateEnabled) {
test::ScopedCLDDynamicDataHarness dynamic_data_scope;
ASSERT_NO_FATAL_FAILURE(dynamic_data_scope.Init());
TranslateService::SetUseInfobar(true);
// Verifies that translate can be forced enabled or disabled by policy.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment