diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-08 03:52:59 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-08 03:52:59 +0000 |
commit | 5d9620155824daa9dbd1ea96611241b475b1b167 (patch) | |
tree | d76485f4374457c11c26be538e1f96a1b81f61b3 /chrome/browser/instant | |
parent | 804d6c8f032351ec9800686dd15fb90084e378a8 (diff) | |
download | chromium_src-5d9620155824daa9dbd1ea96611241b475b1b167.zip chromium_src-5d9620155824daa9dbd1ea96611241b475b1b167.tar.gz chromium_src-5d9620155824daa9dbd1ea96611241b475b1b167.tar.bz2 |
Fixes uneeded delete in InstantLoader. This is no longer needed as
FrameLoaderObserver's lifetime is tied to that of InstantLoader.
BUG=58411
TEST=none
TBR=jcivelli@chromium.org
Review URL: http://codereview.chromium.org/3536017
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61912 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/instant')
-rw-r--r-- | chrome/browser/instant/instant_loader.cc | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/chrome/browser/instant/instant_loader.cc b/chrome/browser/instant/instant_loader.cc index 0ab0731..eb33c3c 100644 --- a/chrome/browser/instant/instant_loader.cc +++ b/chrome/browser/instant/instant_loader.cc @@ -130,8 +130,6 @@ class InstantLoader::FrameLoadObserver : public NotificationObserver { execute_js_id_(0) { registrar_.Add(this, NotificationType::LOAD_COMPLETED_MAIN_FRAME, Source<TabContents>(tab_contents_)); - registrar_.Add(this, NotificationType::TAB_CONTENTS_DESTROYED, - Source<TabContents>(tab_contents_)); } // Sets the text to send to the page. @@ -173,10 +171,6 @@ class InstantLoader::FrameLoadObserver : public NotificationObserver { return; } - case NotificationType::TAB_CONTENTS_DESTROYED: - delete this; - return; - default: NOTREACHED(); break; |