| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "components/browsing_data_ui/history_notice_utils.h" | 5 #include "components/browsing_data/core/history_notice_utils.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/location.h" | 9 #include "base/location.h" |
| 10 #include "base/single_thread_task_runner.h" | 10 #include "base/single_thread_task_runner.h" |
| 11 #include "base/strings/stringprintf.h" | 11 #include "base/strings/stringprintf.h" |
| 12 #include "base/threading/thread_task_runner_handle.h" | 12 #include "base/threading/thread_task_runner_handle.h" |
| 13 #include "components/history/core/browser/web_history_service.h" | 13 #include "components/history/core/browser/web_history_service.h" |
| 14 #include "components/sync/driver/sync_service.h" | 14 #include "components/sync/driver/sync_service.h" |
| 15 #include "components/version_info/version_info.h" | 15 #include "components/version_info/version_info.h" |
| (...skipping 28 matching lines...) Expand all Loading... |
| 44 | 44 |
| 45 private: | 45 private: |
| 46 int expected_call_count_; | 46 int expected_call_count_; |
| 47 base::Callback<void(bool)> target_callback_; | 47 base::Callback<void(bool)> target_callback_; |
| 48 bool final_response_; | 48 bool final_response_; |
| 49 int call_count_; | 49 int call_count_; |
| 50 }; | 50 }; |
| 51 | 51 |
| 52 } // namespace | 52 } // namespace |
| 53 | 53 |
| 54 namespace browsing_data_ui { | 54 namespace browsing_data { |
| 55 | 55 |
| 56 namespace testing { | 56 namespace testing { |
| 57 | 57 |
| 58 bool g_override_other_forms_of_browsing_history_query = false; | 58 bool g_override_other_forms_of_browsing_history_query = false; |
| 59 | 59 |
| 60 } // namespace testing | 60 } // namespace testing |
| 61 | 61 |
| 62 void ShouldShowNoticeAboutOtherFormsOfBrowsingHistory( | 62 void ShouldShowNoticeAboutOtherFormsOfBrowsingHistory( |
| 63 const sync_driver::SyncService* sync_service, | 63 const sync_driver::SyncService* sync_service, |
| 64 history::WebHistoryService* history_service, | 64 history::WebHistoryService* history_service, |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 // after processing both callbacks. | 105 // after processing both callbacks. |
| 106 MergeBooleanCallbacks* merger = new MergeBooleanCallbacks(2, callback); | 106 MergeBooleanCallbacks* merger = new MergeBooleanCallbacks(2, callback); |
| 107 history_service->QueryWebAndAppActivity(base::Bind( | 107 history_service->QueryWebAndAppActivity(base::Bind( |
| 108 &MergeBooleanCallbacks::RunCallback, base::Unretained(merger))); | 108 &MergeBooleanCallbacks::RunCallback, base::Unretained(merger))); |
| 109 history_service->QueryOtherFormsOfBrowsingHistory( | 109 history_service->QueryOtherFormsOfBrowsingHistory( |
| 110 channel, | 110 channel, |
| 111 base::Bind( | 111 base::Bind( |
| 112 &MergeBooleanCallbacks::RunCallback, base::Unretained(merger))); | 112 &MergeBooleanCallbacks::RunCallback, base::Unretained(merger))); |
| 113 } | 113 } |
| 114 | 114 |
| 115 } // namespace browsing_data_ui | 115 } // namespace browsing_data |
| OLD | NEW |