Commit dc9abbb8 authored by tim@chromium.org's avatar tim@chromium.org

sync: fix tiny bug with NotificationServiceSessionsRouter

On Chrome os managed mode, if we get a blocked navigation before session sync is set up we can't do anything with it.

BUG=98892

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@244001 0039d316-1c4b-4281-b951-d872f2087c98
parent b4caa381
...@@ -135,7 +135,7 @@ void NotificationServiceSessionsRouter::OnNavigationBlocked( ...@@ -135,7 +135,7 @@ void NotificationServiceSessionsRouter::OnNavigationBlocked(
content::WebContents* web_contents) { content::WebContents* web_contents) {
SyncedTabDelegate* tab = SyncedTabDelegate* tab =
SyncedTabDelegate::ImplFromWebContents(web_contents); SyncedTabDelegate::ImplFromWebContents(web_contents);
if (!tab) if (!tab || !handler_)
return; return;
DCHECK(tab->profile() == profile_); DCHECK(tab->profile() == profile_);
......
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