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

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

Issue 6732040: PyAuto automation hooks: blocking wifi connect, disconnect, and network scan. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Changes per comments. Created 9 years, 9 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
« no previous file with comments | « no previous file | chrome/browser/automation/automation_provider_observers.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/automation/automation_provider.cc
diff --git a/chrome/browser/automation/automation_provider.cc b/chrome/browser/automation/automation_provider.cc
index cbc7123606a72401d9502891a8642b5a2356f36e..c8de88241ec6a066cfdc60d7ef219c2544e3aa2b 100644
--- a/chrome/browser/automation/automation_provider.cc
+++ b/chrome/browser/automation/automation_provider.cc
@@ -178,7 +178,9 @@ bool AutomationProvider::InitializeChannel(const std::string& channel_id) {
// Wait for the network manager to initialize.
// The observer will delete itself when done.
network_library_initialized_ = false;
- new NetworkManagerInitObserver(this);
+ NetworkManagerInitObserver* observer = new NetworkManagerInitObserver(this);
+ if (!observer->Init())
+ delete observer;
stevenjb 2011/03/25 23:08:51 return false or report failure here?
#endif
TRACE_EVENT_END("AutomationProvider::InitializeChannel", 0, "");
« no previous file with comments | « no previous file | chrome/browser/automation/automation_provider_observers.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698