OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/chromeos/drive/file_system_util.h" | 5 #include "chrome/browser/chromeos/drive/file_system_util.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <string> | 9 #include <string> |
8 #include <vector> | 10 #include <vector> |
9 | 11 |
10 #include "base/basictypes.h" | |
11 #include "base/bind.h" | 12 #include "base/bind.h" |
12 #include "base/bind_helpers.h" | 13 #include "base/bind_helpers.h" |
13 #include "base/files/file_path.h" | 14 #include "base/files/file_path.h" |
14 #include "base/files/file_util.h" | 15 #include "base/files/file_util.h" |
15 #include "base/i18n/icu_string_conversions.h" | 16 #include "base/i18n/icu_string_conversions.h" |
16 #include "base/json/json_file_value_serializer.h" | 17 #include "base/json/json_file_value_serializer.h" |
17 #include "base/logging.h" | 18 #include "base/logging.h" |
| 19 #include "base/macros.h" |
18 #include "base/memory/scoped_ptr.h" | 20 #include "base/memory/scoped_ptr.h" |
19 #include "base/prefs/pref_service.h" | 21 #include "base/prefs/pref_service.h" |
20 #include "base/strings/string_number_conversions.h" | 22 #include "base/strings/string_number_conversions.h" |
21 #include "base/strings/string_util.h" | 23 #include "base/strings/string_util.h" |
22 #include "base/strings/stringprintf.h" | 24 #include "base/strings/stringprintf.h" |
23 #include "base/thread_task_runner_handle.h" | 25 #include "base/thread_task_runner_handle.h" |
24 #include "base/threading/sequenced_worker_pool.h" | 26 #include "base/threading/sequenced_worker_pool.h" |
25 #include "chrome/browser/browser_process.h" | 27 #include "chrome/browser/browser_process.h" |
26 #include "chrome/browser/chromeos/drive/drive_integration_service.h" | 28 #include "chrome/browser/chromeos/drive/drive_integration_service.h" |
27 #include "chrome/browser/chromeos/drive/write_on_cache_file.h" | 29 #include "chrome/browser/chromeos/drive/write_on_cache_file.h" |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 const bool disable_sync_over_celluar = | 251 const bool disable_sync_over_celluar = |
250 profile->GetPrefs()->GetBoolean(prefs::kDisableDriveOverCellular); | 252 profile->GetPrefs()->GetBoolean(prefs::kDisableDriveOverCellular); |
251 | 253 |
252 if (is_connection_cellular && disable_sync_over_celluar) | 254 if (is_connection_cellular && disable_sync_over_celluar) |
253 return DRIVE_CONNECTED_METERED; | 255 return DRIVE_CONNECTED_METERED; |
254 return DRIVE_CONNECTED; | 256 return DRIVE_CONNECTED; |
255 } | 257 } |
256 | 258 |
257 } // namespace util | 259 } // namespace util |
258 } // namespace drive | 260 } // namespace drive |
OLD | NEW |