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

Unified Diff: chrome/browser/renderer_host/offline_resource_handler.cc

Issue 7969009: Removed chromeos::NetworkStateNotifier and redirected all related code to use (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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/web_socket_proxy_controller.cc ('k') | chrome/browser/sessions/session_restore.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_host/offline_resource_handler.cc
===================================================================
--- chrome/browser/renderer_host/offline_resource_handler.cc (revision 102206)
+++ chrome/browser/renderer_host/offline_resource_handler.cc (working copy)
@@ -10,7 +10,6 @@
#include "base/memory/singleton.h"
#include "base/metrics/histogram.h"
#include "base/string_util.h"
-#include "chrome/browser/chromeos/network_state_notifier.h"
#include "chrome/browser/chromeos/offline/offline_load_page.h"
#include "chrome/browser/net/chrome_url_request_context.h"
#include "chrome/common/url_constants.h"
@@ -19,6 +18,7 @@
#include "content/browser/renderer_host/resource_dispatcher_host.h"
#include "content/browser/renderer_host/resource_dispatcher_host_request_info.h"
#include "net/base/net_errors.h"
+#include "net/base/network_change_notifier.h"
#include "net/url_request/url_request.h"
#include "net/url_request/url_request_context.h"
@@ -172,7 +172,7 @@
// Only check main frame. If the network is disconnected while
// loading other resources, we'll simply show broken link/images.
return IsRemote(url) &&
- !chromeos::NetworkStateNotifier::is_connected() &&
+ net::NetworkChangeNotifier::IsOffline() &&
ResourceDispatcherHost::InfoForRequest(request_)->resource_type()
== ResourceType::MAIN_FRAME;
}
« no previous file with comments | « chrome/browser/chromeos/web_socket_proxy_controller.cc ('k') | chrome/browser/sessions/session_restore.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698