| Index: chrome/browser/extensions/extension_tab_id_map.cc
|
| diff --git a/chrome/browser/extensions/extension_tab_id_map.cc b/chrome/browser/extensions/extension_tab_id_map.cc
|
| index 99484056807369e1c4fd8d1ce5a7519404ed1769..9f590dcf1fa4e046eb11c1560394bf9fc860bd8f 100644
|
| --- a/chrome/browser/extensions/extension_tab_id_map.cc
|
| +++ b/chrome/browser/extensions/extension_tab_id_map.cc
|
| @@ -47,7 +47,8 @@ class ExtensionTabIdMap::TabObserver : public content::NotificationObserver {
|
|
|
| ExtensionTabIdMap::TabObserver::TabObserver() {
|
| DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
|
| - registrar_.Add(this, content::NOTIFICATION_RENDER_VIEW_HOST_CREATED_FOR_TAB,
|
| + registrar_.Add(this,
|
| + content::NOTIFICATION_WEB_CONTENTS_RENDER_VIEW_HOST_CREATED,
|
| content::NotificationService::AllBrowserContextsAndSources());
|
| registrar_.Add(this, content::NOTIFICATION_RENDER_VIEW_HOST_DELETED,
|
| content::NotificationService::AllBrowserContextsAndSources());
|
| @@ -65,7 +66,7 @@ void ExtensionTabIdMap::TabObserver::Observe(
|
| int type, const content::NotificationSource& source,
|
| const content::NotificationDetails& details) {
|
| switch (type) {
|
| - case content::NOTIFICATION_RENDER_VIEW_HOST_CREATED_FOR_TAB: {
|
| + case content::NOTIFICATION_WEB_CONTENTS_RENDER_VIEW_HOST_CREATED: {
|
| WebContents* contents = content::Source<WebContents>(source).ptr();
|
| TabContents* tab = TabContents::FromWebContents(contents);
|
| if (!tab)
|
|
|