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

Side by Side Diff: chrome/browser/chromeos/gdata/gdata_sync_client.cc

Issue 10857031: Move PrefMember and PrefChangeRegistrar to api directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to parent Created 8 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_file_system.h ('k') | chrome/browser/chromeos/input_method/browser_state_monitor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698