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

Unified Diff: chrome/browser/chromeos/net/network_change_notifier_chromeos.cc

Issue 7009002: Fix debug crash caused by NetworkChangeNotifierChromeos. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Change NotifyObserversOfOnlineStateChange call to static. Created 9 years, 6 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 | « chrome/browser/chromeos/net/network_change_notifier_chromeos.h ('k') | net/base/network_change_notifier.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/net/network_change_notifier_chromeos.cc
diff --git a/chrome/browser/chromeos/net/network_change_notifier_chromeos.cc b/chrome/browser/chromeos/net/network_change_notifier_chromeos.cc
index afbc17dd3ac8818d9ff03a0fd654d16b866a05cd..b8c1dc9bd80b0c76ccf5b5e4af96a4ebc2dc8ad0 100644
--- a/chrome/browser/chromeos/net/network_change_notifier_chromeos.cc
+++ b/chrome/browser/chromeos/net/network_change_notifier_chromeos.cc
@@ -12,8 +12,7 @@ namespace chromeos {
NetworkChangeNotifierChromeos::NetworkChangeNotifierChromeos()
: has_active_network_(false),
- connection_state_(chromeos::STATE_UNKNOWN),
- ALLOW_THIS_IN_INITIALIZER_LIST(method_factory_(this)) {
+ connection_state_(chromeos::STATE_UNKNOWN) {
chromeos::NetworkLibrary* lib =
chromeos::CrosLibrary::Get()->GetNetworkLibrary();
@@ -110,7 +109,7 @@ void NetworkChangeNotifierChromeos::OnNetworkChanged(
if (is_online != was_online || is_portal != was_portal) {
BrowserThread::PostTask(
BrowserThread::IO, FROM_HERE,
- method_factory_.NewRunnableMethod(
+ NewRunnableFunction(
&NetworkChangeNotifierChromeos::NotifyObserversOfOnlineStateChange));
}
connection_state_ = new_connection_state;
« no previous file with comments | « chrome/browser/chromeos/net/network_change_notifier_chromeos.h ('k') | net/base/network_change_notifier.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698