| 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/gdata/gdata_sync_client.h" |    5 #include "chrome/browser/chromeos/gdata/gdata_sync_client.h" | 
|    6  |    6  | 
 |    7 #include <sys/stat.h> | 
|    7 #include <sys/types.h> |    8 #include <sys/types.h> | 
|    8 #include <sys/stat.h> |  | 
|    9 #include <unistd.h> |    9 #include <unistd.h> | 
|   10  |   10  | 
|   11 #include <algorithm> |   11 #include <algorithm> | 
|   12 #include <vector> |   12 #include <vector> | 
|   13  |   13  | 
|   14 #include "base/bind.h" |   14 #include "base/bind.h" | 
|   15 #include "base/file_util.h" |   15 #include "base/file_util.h" | 
|   16 #include "base/message_loop_proxy.h" |   16 #include "base/message_loop_proxy.h" | 
|   17 #include "base/threading/sequenced_worker_pool.h" |   17 #include "base/threading/sequenced_worker_pool.h" | 
 |   18 #include "chrome/browser/api/prefs/pref_change_registrar.h" | 
|   18 #include "chrome/browser/chromeos/cros/cros_library.h" |   19 #include "chrome/browser/chromeos/cros/cros_library.h" | 
|   19 #include "chrome/browser/chromeos/gdata/gdata.pb.h" |   20 #include "chrome/browser/chromeos/gdata/gdata.pb.h" | 
|   20 #include "chrome/browser/prefs/pref_change_registrar.h" |  | 
|   21 #include "chrome/browser/prefs/pref_service.h" |   21 #include "chrome/browser/prefs/pref_service.h" | 
|   22 #include "chrome/browser/profiles/profile.h" |   22 #include "chrome/browser/profiles/profile.h" | 
|   23 #include "chrome/common/pref_names.h" |   23 #include "chrome/common/pref_names.h" | 
|   24 #include "content/public/browser/browser_thread.h" |   24 #include "content/public/browser/browser_thread.h" | 
|   25  |   25  | 
|   26 using content::BrowserThread; |   26 using content::BrowserThread; | 
|   27  |   27  | 
|   28 namespace gdata { |   28 namespace gdata { | 
|   29  |   29  | 
|   30 namespace { |   30 namespace { | 
| (...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  457                               const content::NotificationDetails& details) { |  457                               const content::NotificationDetails& details) { | 
|  458   DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |  458   DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 
|  459  |  459  | 
|  460   // Resume the sync loop if gdata preferences are changed. Note that we |  460   // Resume the sync loop if gdata preferences are changed. Note that we | 
|  461   // don't need to check the new values here as these will be checked in |  461   // don't need to check the new values here as these will be checked in | 
|  462   // ShouldStopSyncLoop() as soon as the loop is resumed. |  462   // ShouldStopSyncLoop() as soon as the loop is resumed. | 
|  463   StartSyncLoop(); |  463   StartSyncLoop(); | 
|  464 } |  464 } | 
|  465  |  465  | 
|  466 }  // namespace gdata |  466 }  // namespace gdata | 
| OLD | NEW |