OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 #ifdef CHROME_PERSONALIZATION | 5 #ifdef CHROME_PERSONALIZATION |
6 #include "chrome/browser/sync/profile_sync_service.h" | 6 #include "chrome/browser/sync/profile_sync_service.h" |
7 | 7 |
8 #include <stack> | 8 #include <stack> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "app/l10n_util.h" | 11 #include "app/l10n_util.h" |
12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
13 #include "base/command_line.h" | 13 #include "base/command_line.h" |
14 #include "base/file_path.h" | 14 #include "base/file_path.h" |
15 #include "base/file_util.h" | 15 #include "base/file_util.h" |
16 #include "base/gfx/png_encoder.h" | |
17 #include "base/histogram.h" | 16 #include "base/histogram.h" |
18 #include "base/stl_util-inl.h" | 17 #include "base/stl_util-inl.h" |
19 #include "base/string_util.h" | 18 #include "base/string_util.h" |
20 #include "base/time.h" | 19 #include "base/time.h" |
21 #include "chrome/browser/bookmarks/bookmark_utils.h" | 20 #include "chrome/browser/bookmarks/bookmark_utils.h" |
22 #include "chrome/browser/history/history_notifications.h" | 21 #include "chrome/browser/history/history_notifications.h" |
23 #include "chrome/browser/history/history_types.h" | 22 #include "chrome/browser/history/history_types.h" |
24 #include "chrome/browser/profile.h" | 23 #include "chrome/browser/profile.h" |
25 #include "chrome/browser/sync/engine/syncapi.h" | 24 #include "chrome/browser/sync/engine/syncapi.h" |
26 #include "chrome/common/chrome_switches.h" | 25 #include "chrome/common/chrome_switches.h" |
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
422 } | 421 } |
423 | 422 |
424 bool ProfileSyncService::ShouldPushChanges() { | 423 bool ProfileSyncService::ShouldPushChanges() { |
425 // True only after all bootstrapping has succeeded: the bookmark model is | 424 // True only after all bootstrapping has succeeded: the bookmark model is |
426 // loaded, the sync backend is initialized, the two domains are | 425 // loaded, the sync backend is initialized, the two domains are |
427 // consistent with one another, and no unrecoverable error has transpired. | 426 // consistent with one another, and no unrecoverable error has transpired. |
428 return change_processor_->IsRunning(); | 427 return change_processor_->IsRunning(); |
429 } | 428 } |
430 | 429 |
431 #endif // CHROME_PERSONALIZATION | 430 #endif // CHROME_PERSONALIZATION |
OLD | NEW |