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 <stddef.h> | 5 #include <stddef.h> |
6 #include <stdint.h> | 6 #include <stdint.h> |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/bind.h" | 13 #include "base/bind.h" |
14 #include "base/bind_helpers.h" | 14 #include "base/bind_helpers.h" |
15 #include "base/callback.h" | 15 #include "base/callback.h" |
16 #include "base/location.h" | 16 #include "base/location.h" |
17 #include "base/macros.h" | 17 #include "base/macros.h" |
18 #include "base/memory/ptr_util.h" | 18 #include "base/memory/ptr_util.h" |
19 #include "base/memory/ref_counted.h" | 19 #include "base/memory/ref_counted.h" |
20 #include "base/strings/string16.h" | 20 #include "base/strings/string16.h" |
21 #include "base/strings/utf_string_conversions.h" | 21 #include "base/strings/utf_string_conversions.h" |
22 #include "base/thread_task_runner_handle.h" | |
23 #include "base/threading/thread.h" | 22 #include "base/threading/thread.h" |
| 23 #include "base/threading/thread_task_runner_handle.h" |
24 #include "base/time/time.h" | 24 #include "base/time/time.h" |
25 #include "components/browser_sync/browser/abstract_profile_sync_service_test.h" | 25 #include "components/browser_sync/browser/abstract_profile_sync_service_test.h" |
26 #include "components/browser_sync/browser/test_profile_sync_service.h" | 26 #include "components/browser_sync/browser/test_profile_sync_service.h" |
27 #include "components/history/core/browser/history_backend.h" | 27 #include "components/history/core/browser/history_backend.h" |
28 #include "components/history/core/browser/history_backend_client.h" | 28 #include "components/history/core/browser/history_backend_client.h" |
29 #include "components/history/core/browser/history_backend_notifier.h" | 29 #include "components/history/core/browser/history_backend_notifier.h" |
30 #include "components/history/core/browser/history_db_task.h" | 30 #include "components/history/core/browser/history_db_task.h" |
31 #include "components/history/core/browser/history_service.h" | 31 #include "components/history/core/browser/history_service.h" |
32 #include "components/history/core/browser/typed_url_data_type_controller.h" | 32 #include "components/history/core/browser/typed_url_data_type_controller.h" |
33 #include "components/signin/core/browser/signin_manager.h" | 33 #include "components/signin/core/browser/signin_manager.h" |
(...skipping 1045 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1079 history::URLRows changed_urls; | 1079 history::URLRows changed_urls; |
1080 changed_urls.push_back(updated_url_entry); | 1080 changed_urls.push_back(updated_url_entry); |
1081 SendNotificationURLsModified(changed_urls); | 1081 SendNotificationURLsModified(changed_urls); |
1082 | 1082 |
1083 history::URLRows new_sync_entries; | 1083 history::URLRows new_sync_entries; |
1084 GetTypedUrlsFromSyncDB(&new_sync_entries); | 1084 GetTypedUrlsFromSyncDB(&new_sync_entries); |
1085 | 1085 |
1086 // The change should be ignored. | 1086 // The change should be ignored. |
1087 ASSERT_EQ(0U, new_sync_entries.size()); | 1087 ASSERT_EQ(0U, new_sync_entries.size()); |
1088 } | 1088 } |
OLD | NEW |