| Index: chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc
|
| diff --git a/chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc b/chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc
|
| index d8887c24ed9b9d890d4dffa8d70174181658113f..31756a0e7e104e076347494533cfbc514b8d377b 100644
|
| --- a/chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc
|
| +++ b/chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc
|
| @@ -12,6 +12,7 @@
|
| #include "chrome/browser/bookmarks/bookmark_model_factory.h"
|
| #include "chrome/browser/chrome_content_browser_client.h"
|
| #include "chrome/browser/chrome_notification_types.h"
|
| +#include "chrome/browser/prefs/incognito_mode_prefs.h"
|
| #include "chrome/browser/profiles/profile.h"
|
| #include "chrome/browser/ui/bookmarks/bookmark_utils.h"
|
| #include "chrome/browser/ui/browser.h"
|
| @@ -253,6 +254,17 @@ class BookmarkBarViewEventTestBase : public ViewEventTestBase {
|
| : ViewEventTestBase(),
|
| model_(NULL) {}
|
|
|
| + static void SetUpTestCase() {
|
| + ViewEventTestBase::SetUpTestCase();
|
| + // Creating a browser requires platform parental controls initialization.
|
| + IncognitoModePrefs::InitializePlatformParentalControls();
|
| + }
|
| +
|
| + static void TearDownTestCase() {
|
| + IncognitoModePrefs::UninitializePlatformParentalControls();
|
| + ViewEventTestBase::TearDownTestCase();
|
| + }
|
| +
|
| void SetUp() override {
|
| content_client_.reset(new ChromeContentClient);
|
| content::SetContentClient(content_client_.get());
|
|
|