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

Side by Side Diff: chrome/browser/sync/glue/sync_backend_host.cc

Issue 7587009: sync: add DEPS files to subdirs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix include Created 9 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
« no previous file with comments | « chrome/browser/sync/glue/generic_change_processor.cc ('k') | chrome/browser/sync/sessions/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "build/build_config.h" 5 #include "build/build_config.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/file_util.h" 12 #include "base/file_util.h"
13 #include "base/task.h" 13 #include "base/task.h"
14 #include "base/threading/thread_restrictions.h" 14 #include "base/threading/thread_restrictions.h"
15 #include "base/tracked.h" 15 #include "base/tracked.h"
16 #include "base/utf_string_conversions.h" 16 #include "base/utf_string_conversions.h"
17 #include "chrome/browser/net/gaia/token_service.h" 17 #include "chrome/browser/net/gaia/token_service.h"
18 #include "chrome/browser/prefs/pref_service.h" 18 #include "chrome/browser/prefs/pref_service.h"
19 #include "chrome/browser/profiles/profile.h" 19 #include "chrome/browser/profiles/profile.h"
20 #include "chrome/browser/sync/engine/nigori_util.h"
20 #include "chrome/browser/sync/engine/syncapi.h" 21 #include "chrome/browser/sync/engine/syncapi.h"
21 #include "chrome/browser/sync/glue/autofill_model_associator.h" 22 #include "chrome/browser/sync/glue/autofill_model_associator.h"
22 #include "chrome/browser/sync/glue/autofill_profile_model_associator.h" 23 #include "chrome/browser/sync/glue/autofill_profile_model_associator.h"
23 #include "chrome/browser/sync/glue/change_processor.h" 24 #include "chrome/browser/sync/glue/change_processor.h"
24 #include "chrome/browser/sync/glue/database_model_worker.h" 25 #include "chrome/browser/sync/glue/database_model_worker.h"
25 #include "chrome/browser/sync/glue/history_model_worker.h" 26 #include "chrome/browser/sync/glue/history_model_worker.h"
26 #include "chrome/browser/sync/glue/http_bridge.h" 27 #include "chrome/browser/sync/glue/http_bridge.h"
27 #include "chrome/browser/sync/glue/password_model_worker.h" 28 #include "chrome/browser/sync/glue/password_model_worker.h"
28 #include "chrome/browser/sync/glue/sync_backend_host.h" 29 #include "chrome/browser/sync/glue/sync_backend_host.h"
29 #include "chrome/browser/sync/js/js_arg_list.h" 30 #include "chrome/browser/sync/js/js_arg_list.h"
30 #include "chrome/browser/sync/js/js_event_details.h" 31 #include "chrome/browser/sync/js/js_event_details.h"
31 #include "chrome/browser/sync/js/js_event_handler.h" 32 #include "chrome/browser/sync/js/js_event_handler.h"
32 #include "chrome/browser/sync/notifier/sync_notifier.h" 33 #include "chrome/browser/sync/notifier/sync_notifier.h"
33 #include "chrome/browser/sync/sessions/session_state.h" 34 #include "chrome/browser/sync/sessions/session_state.h"
34 // TODO(tim): Remove this! We should have a syncapi pass-thru instead. 35 // TODO(tim): Remove this! We should have a syncapi pass-thru instead.
35 #include "chrome/browser/sync/syncable/directory_manager.h" // Cryptographer. 36 #include "chrome/browser/sync/syncable/directory_manager.h" // Cryptographer.
36 #include "chrome/browser/sync/syncable/model_type.h" 37 #include "chrome/browser/sync/syncable/model_type.h"
37 #include "chrome/browser/sync/syncable/nigori_util.h"
38 #include "chrome/common/chrome_notification_types.h" 38 #include "chrome/common/chrome_notification_types.h"
39 #include "chrome/common/chrome_switches.h" 39 #include "chrome/common/chrome_switches.h"
40 #include "chrome/common/chrome_version_info.h" 40 #include "chrome/common/chrome_version_info.h"
41 #include "chrome/common/net/gaia/gaia_constants.h" 41 #include "chrome/common/net/gaia/gaia_constants.h"
42 #include "chrome/common/pref_names.h" 42 #include "chrome/common/pref_names.h"
43 #include "content/browser/browser_thread.h" 43 #include "content/browser/browser_thread.h"
44 #include "content/common/notification_service.h" 44 #include "content/common/notification_service.h"
45 #include "googleurl/src/gurl.h" 45 #include "googleurl/src/gurl.h"
46 #include "webkit/glue/webkit_glue.h" 46 #include "webkit/glue/webkit_glue.h"
47 47
(...skipping 1001 matching lines...) Expand 10 before | Expand all | Expand 10 after
1049 } 1049 }
1050 1050
1051 void SyncBackendHost::Core::DeleteSyncDataFolder() { 1051 void SyncBackendHost::Core::DeleteSyncDataFolder() {
1052 if (file_util::DirectoryExists(host_->sync_data_folder_path())) { 1052 if (file_util::DirectoryExists(host_->sync_data_folder_path())) {
1053 if (!file_util::Delete(host_->sync_data_folder_path(), true)) 1053 if (!file_util::Delete(host_->sync_data_folder_path(), true))
1054 LOG(DFATAL) << "Could not delete the Sync Data folder."; 1054 LOG(DFATAL) << "Could not delete the Sync Data folder.";
1055 } 1055 }
1056 } 1056 }
1057 1057
1058 } // namespace browser_sync 1058 } // namespace browser_sync
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/generic_change_processor.cc ('k') | chrome/browser/sync/sessions/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698