Commit 63bf923a authored by felt's avatar felt Committed by Commit bot

GeolocationBrowserTest: only put bubble in test mode when needed

The GeolocationBrowserTest runs both with and without permission
bubbles. There's no need to set the permission bubble view into test
mode if the permission bubble isn't being used. This adds an if-check.

BUG=466714

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

Cr-Commit-Position: refs/heads/master@{#321552}
parent 1580d366
......@@ -181,7 +181,8 @@ GeolocationNotificationObserver::GeolocationNotificationObserver(
registrar_.Add(this, content::NOTIFICATION_LOAD_STOP,
content::NotificationService::AllSources());
}
mock_view_->SetBrowserTest(true);
if (PermissionBubbleManager::Enabled())
mock_view_->SetBrowserTest(true);
}
GeolocationNotificationObserver::~GeolocationNotificationObserver() {
......
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