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

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

Issue 11115009: Helper functions in NetworkChangeNotifier related to WWAN use (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Typo 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_file_system_util.cc
diff --git a/chrome/browser/chromeos/drive/drive_file_system_util.cc b/chrome/browser/chromeos/drive/drive_file_system_util.cc
index 3864d7b86b183304ff46909428cf3921d3b87d1d..ace100621d7a0f726736138775cbcb61fc510c15 100644
--- a/chrome/browser/chromeos/drive/drive_file_system_util.cc
+++ b/chrome/browser/chromeos/drive/drive_file_system_util.cc
@@ -441,25 +441,5 @@ DriveFileError GDataToDriveFileError(google_apis::GDataErrorCode status) {
}
}
-bool IsConnectionTypeCellular() {
- bool is_cellular = false;
- // Use switch, not if, to allow compiler to catch future enum changes.
- // (e.g. Addition of CONNECTION_5G)
- switch (net::NetworkChangeNotifier::GetConnectionType()) {
- case net::NetworkChangeNotifier::CONNECTION_2G:
- case net::NetworkChangeNotifier::CONNECTION_3G:
- case net::NetworkChangeNotifier::CONNECTION_4G:
- is_cellular = true;
- break;
- case net::NetworkChangeNotifier::CONNECTION_UNKNOWN:
- case net::NetworkChangeNotifier::CONNECTION_ETHERNET:
- case net::NetworkChangeNotifier::CONNECTION_WIFI:
- case net::NetworkChangeNotifier::CONNECTION_NONE:
- is_cellular = false;
- break;
- }
- return is_cellular;
-}
-
} // namespace util
} // namespace drive
« no previous file with comments | « chrome/browser/chromeos/drive/drive_file_system_util.h ('k') | chrome/browser/chromeos/drive/drive_scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698