Index: chrome/browser/extensions/api/tabs/tabs_event_router.cc |
diff --git a/chrome/browser/extensions/api/tabs/tabs_event_router.cc b/chrome/browser/extensions/api/tabs/tabs_event_router.cc |
index bcee3c6410ed5131037cfb9b702378db980ba8e8..107fdf9af32759df2683ea8b19457652920d3345 100644 |
--- a/chrome/browser/extensions/api/tabs/tabs_event_router.cc |
+++ b/chrome/browser/extensions/api/tabs/tabs_event_router.cc |
@@ -20,6 +20,7 @@ |
#include "components/favicon/content/content_favicon_driver.h" |
#include "content/public/browser/favicon_status.h" |
#include "content/public/browser/navigation_controller.h" |
+#include "content/public/browser/navigation_details.h" |
#include "content/public/browser/navigation_entry.h" |
#include "content/public/browser/notification_service.h" |
#include "content/public/browser/notification_types.h" |
@@ -493,6 +494,11 @@ void TabsEventRouter::Observe(int type, |
const content::NotificationSource& source, |
const content::NotificationDetails& details) { |
if (type == content::NOTIFICATION_NAV_ENTRY_COMMITTED) { |
not at google - send to devlin
2015/05/27 15:59:15
can you update this to be a switch?
limasdf
2015/07/01 12:37:54
Done.
|
+ content::LoadCommittedDetails* commit = |
+ content::Details<content::LoadCommittedDetails>(details).ptr(); |
+ if (commit->is_in_page) |
+ return; |
+ |
NavigationController* source_controller = |
content::Source<NavigationController>(source).ptr(); |
TabUpdated(source_controller->GetWebContents(), true); |