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

Unified Diff: chrome/browser/chromeos/drive/drive_scheduler.cc

Issue 11115009: Helper functions in NetworkChangeNotifier related to WWAN use (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Remove whitespace Created 8 years, 2 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/chromeos/drive/drive_scheduler.cc
diff --git a/chrome/browser/chromeos/drive/drive_scheduler.cc b/chrome/browser/chromeos/drive/drive_scheduler.cc
index c2e4eb3b13958965c4a5bf4e3eb052759ec5c0f2..450717e0f3653207413ef9145c03ceb5567fd868 100644
--- a/chrome/browser/chromeos/drive/drive_scheduler.cc
+++ b/chrome/browser/chromeos/drive/drive_scheduler.cc
@@ -8,7 +8,6 @@
#include "base/message_loop.h"
#include "base/rand_util.h"
-#include "chrome/browser/chromeos/drive/drive_file_system_util.h"
#include "chrome/browser/chromeos/drive/file_system/drive_operations.h"
#include "chrome/browser/chromeos/drive/file_system/remove_operation.h"
#include "chrome/browser/prefs/pref_service.h"
@@ -166,7 +165,8 @@ bool DriveScheduler::ShouldStopJobLoop() {
// Should stop if the current connection is on cellular network, and
// fetching is disabled over cellular.
if (profile_->GetPrefs()->GetBoolean(prefs::kDisableDriveOverCellular) &&
- util::IsConnectionTypeCellular())
+ net::NetworkChangeNotifier::IsConnectionCellular(
+ net::NetworkChangeNotifier::GetConnectionType()))
return true;
return false;

Powered by Google App Engine
This is Rietveld 408576698