Commit b57d4b15 authored by benwells's avatar benwells Committed by Commit bot

Don't show location bar in bookmark apps if there has been no navigation

This prevents the location bar appearing and then disappearing when a
bookmark app is first opened.

BUG=463405

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

Cr-Commit-Position: refs/heads/master@{#321964}
parent be5bb7d3
......@@ -79,6 +79,10 @@ bool ShouldShowLocationBar(const Extension* extension,
if (!extension->from_bookmark())
return false;
// Don't show a location bar until a navigation has occurred.
if (web_contents->GetLastCommittedURL().is_empty())
return false;
GURL launch_url = AppLaunchInfo::GetLaunchWebURL(extension);
return !(IsSameOriginOrMoreSecure(launch_url,
web_contents->GetVisibleURL()) &&
......
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