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

Unified Diff: chrome/test/base/browser_with_test_window_test.cc

Issue 950053002: Cache the Windows Parental Controls Platform Answer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Unit Test Fixes Created 5 years, 10 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/test/base/browser_with_test_window_test.cc
diff --git a/chrome/test/base/browser_with_test_window_test.cc b/chrome/test/base/browser_with_test_window_test.cc
index 09f57d5bb5ac6671de86ffc0761a16a3b4a50716..2054647a9f611793cfb76b0e9091bdb18c383aa9 100644
--- a/chrome/test/base/browser_with_test_window_test.cc
+++ b/chrome/test/base/browser_with_test_window_test.cc
@@ -35,6 +35,10 @@
#include "ui/views/test/test_views_delegate.h"
#endif
+#if defined(OS_WIN)
+#include "chrome/browser/prefs/incognito_mode_prefs.h"
+#endif
+
using content::NavigationController;
using content::RenderFrameHost;
using content::RenderFrameHostTester;
@@ -87,6 +91,10 @@ void BrowserWithTestWindowTest::SetUp() {
SetConstrainedWindowViewsClient(CreateChromeConstrainedWindowViewsClient());
#endif // TOOLKIT_VIEWS
+#if defined(OS_WIN)
+ IncognitoModePrefs::InitializePlatformParentalControls();
+#endif // OS_WIN
+
// Subclasses can provide their own Profile.
profile_ = CreateProfile();
// Subclasses can provide their own test BrowserWindow. If they return NULL

Powered by Google App Engine
This is Rietveld 408576698