Index: chrome/browser/policy/policy_browsertest.cc |
diff --git a/chrome/browser/policy/policy_browsertest.cc b/chrome/browser/policy/policy_browsertest.cc |
index 6e87fb77d1547a01ebe191f60b80af0f16e1a3b3..83670ecb28d5397360d153494475fc5a8784077b 100644 |
--- a/chrome/browser/policy/policy_browsertest.cc |
+++ b/chrome/browser/policy/policy_browsertest.cc |
@@ -1499,9 +1499,8 @@ IN_PROC_BROWSER_TEST_F(PolicyTest, HomepageLocation) { |
IN_PROC_BROWSER_TEST_F(PolicyTest, IncognitoEnabled) { |
// Verifies that incognito windows can't be opened when disabled by policy. |
- // Only test this on the native desktop. |
const BrowserList* native_browser_list = |
- BrowserList::GetInstance(chrome::HOST_DESKTOP_TYPE_NATIVE); |
+ BrowserList::GetInstance(chrome::GetActiveDesktop()); |
// Disable incognito via policy and verify that incognito windows can't be |
// opened. |