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

Side by Side Diff: components/browsing_data/core/history_notice_utils.cc

Issue 2238453002: Merge //components/browsing_data_ui into //components/browsing_data/core (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase over https://codereview.chromium.org/2345843003/ Created 4 years, 3 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
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « components/browsing_data/core/history_notice_utils.h ('k') | components/browsing_data/core/history_notice_utils_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698