Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2063)

Unified Diff: chrome/browser/automation/automation_provider_observers.cc

Issue 10830193: Remove SWIGged use of BrowserProxy and TabProxy from PyAuto tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/automation/automation_provider_observers.cc
diff --git a/chrome/browser/automation/automation_provider_observers.cc b/chrome/browser/automation/automation_provider_observers.cc
index d64b673ede2ee81ffee1c3ca56a8c130fd74e89b..050080c5daee714ecd23723c468bce6dae006a10 100644
--- a/chrome/browser/automation/automation_provider_observers.cc
+++ b/chrome/browser/automation/automation_provider_observers.cc
@@ -253,8 +253,8 @@ void NavigationControllerRestoredObserver::Observe(
int type, const content::NotificationSource& source,
const content::NotificationDetails& details) {
if (FinishedRestoring()) {
- SendDone();
registrar_.RemoveAll();
+ SendDone();
}
}
@@ -264,12 +264,11 @@ bool NavigationControllerRestoredObserver::FinishedRestoring() {
}
void NavigationControllerRestoredObserver::SendDone() {
- if (!automation_)
- return;
-
- AutomationMsg_WaitForTabToBeRestored::WriteReplyParams(reply_message_.get(),
- true);
- automation_->Send(reply_message_.release());
+ if (automation_) {
+ AutomationJSONReply(automation_, reply_message_.release())
+ .SendSuccess(NULL);
+ }
+ delete this;
}
NavigationNotificationObserver::NavigationNotificationObserver(

Powered by Google App Engine
This is Rietveld 408576698