summaryrefslogtreecommitdiffstats
path: root/chrome/browser/automation
diff options
context:
space:
mode:
authordarin@google.com <darin@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-29 21:01:07 +0000
committerdarin@google.com <darin@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-29 21:01:07 +0000
commit23258be02f648a6c20c685f15c9feb9047e5db52 (patch)
treeba0297f1c4453709ee1e427810dfb13c49085056 /chrome/browser/automation
parent292e4fb0b259c45565f901733dc04f3c3ce22ed5 (diff)
downloadchromium_src-23258be02f648a6c20c685f15c9feb9047e5db52.zip
chromium_src-23258be02f648a6c20c685f15c9feb9047e5db52.tar.gz
chromium_src-23258be02f648a6c20c685f15c9feb9047e5db52.tar.bz2
Add a command line switch for fastback work.
patch by abarth@chromium.org R=darin BUG=2879 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2690 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/automation')
-rw-r--r--chrome/browser/automation/automation_provider.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/automation/automation_provider.cc b/chrome/browser/automation/automation_provider.cc
index 7705d94..53ff71e 100644
--- a/chrome/browser/automation/automation_provider.cc
+++ b/chrome/browser/automation/automation_provider.cc
@@ -219,11 +219,11 @@ class NavigationNotificationObserver : public NotificationObserver {
automation_->Send(*response);
*response = NULL; // *response is deleted by Send.
}
- automation_->RemoveNavigationStatusListener(this);
delete this;
}
void Unregister() {
+ automation_->RemoveNavigationStatusListener(this);
NotificationService* service = NotificationService::current();
service->RemoveObserver(this, NOTIFY_NAV_ENTRY_COMMITTED,
Source<NavigationController>(controller_));