| Index: chrome/browser/sessions/session_tab_helper.cc
|
| diff --git a/chrome/browser/sessions/session_tab_helper.cc b/chrome/browser/sessions/session_tab_helper.cc
|
| index 53abe02010ce9770a75721c89743e1779b5dfb3e..889df1970fc1674a827f7fdaac4dd7fb03b270a9 100644
|
| --- a/chrome/browser/sessions/session_tab_helper.cc
|
| +++ b/chrome/browser/sessions/session_tab_helper.cc
|
| @@ -7,7 +7,6 @@
|
| #include "chrome/browser/profiles/profile.h"
|
| #include "chrome/browser/sessions/session_service.h"
|
| #include "chrome/browser/sessions/session_service_factory.h"
|
| -#include "chrome/browser/ui/tab_contents/tab_contents.h"
|
| #include "chrome/common/chrome_notification_types.h"
|
| #include "chrome/common/extensions/extension_messages.h"
|
| #include "content/public/browser/notification_service.h"
|
| @@ -26,14 +25,10 @@ SessionTabHelper::~SessionTabHelper() {
|
| void SessionTabHelper::SetWindowID(const SessionID& id) {
|
| window_id_ = id;
|
|
|
| - // TODO(mpcomplete): Maybe this notification should send out a WebContents.
|
| - TabContents* tab = TabContents::FromWebContents(web_contents());
|
| - if (tab) {
|
| - content::NotificationService::current()->Notify(
|
| - chrome::NOTIFICATION_TAB_PARENTED,
|
| - content::Source<TabContents>(tab),
|
| - content::NotificationService::NoDetails());
|
| - }
|
| + content::NotificationService::current()->Notify(
|
| + chrome::NOTIFICATION_TAB_PARENTED,
|
| + content::Source<content::WebContents>(web_contents()),
|
| + content::NotificationService::NoDetails());
|
|
|
| // Extension code in the renderer holds the ID of the window that hosts it.
|
| // Notify it that the window ID changed.
|
|
|