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/drive_sync_client.h" | 5 #include "chrome/browser/chromeos/drive/drive_sync_client.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/message_loop_proxy.h" | 11 #include "base/message_loop_proxy.h" |
| 12 #include "base/prefs/pref_change_registrar.h" |
12 #include "base/prefs/pref_service.h" | 13 #include "base/prefs/pref_service.h" |
13 #include "base/prefs/public/pref_change_registrar.h" | |
14 #include "chrome/browser/chromeos/drive/drive.pb.h" | 14 #include "chrome/browser/chromeos/drive/drive.pb.h" |
15 #include "chrome/browser/chromeos/drive/drive_file_system_interface.h" | 15 #include "chrome/browser/chromeos/drive/drive_file_system_interface.h" |
16 #include "chrome/browser/profiles/profile.h" | 16 #include "chrome/browser/profiles/profile.h" |
17 #include "chrome/common/pref_names.h" | 17 #include "chrome/common/pref_names.h" |
18 #include "content/public/browser/browser_thread.h" | 18 #include "content/public/browser/browser_thread.h" |
19 | 19 |
20 using content::BrowserThread; | 20 using content::BrowserThread; |
21 | 21 |
22 namespace drive { | 22 namespace drive { |
23 | 23 |
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
342 | 342 |
343 if (error == DRIVE_FILE_OK) { | 343 if (error == DRIVE_FILE_OK) { |
344 DVLOG(1) << "Uploaded " << resource_id; | 344 DVLOG(1) << "Uploaded " << resource_id; |
345 } else { | 345 } else { |
346 // TODO(satorux): We should re-queue if the error is recoverable. | 346 // TODO(satorux): We should re-queue if the error is recoverable. |
347 LOG(WARNING) << "Failed to upload " << resource_id << ": " << error; | 347 LOG(WARNING) << "Failed to upload " << resource_id << ": " << error; |
348 } | 348 } |
349 } | 349 } |
350 | 350 |
351 } // namespace drive | 351 } // namespace drive |
OLD | NEW |