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

Unified Diff: chrome/browser/ui/search/search_ipc_router_policy_impl.cc

Issue 1260033003: Partially componentize //chrome/browser/search/search.{h,cc} (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compilation on iOS Created 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/search/search_ipc_router_policy_impl.cc
diff --git a/chrome/browser/ui/search/search_ipc_router_policy_impl.cc b/chrome/browser/ui/search/search_ipc_router_policy_impl.cc
index bbab087c52c5dcba32b77bf451d2a4ec86097d0d..4a85e2fb19d1b4a2cd51ec0d56dec5b24549ac54 100644
--- a/chrome/browser/ui/search/search_ipc_router_policy_impl.cc
+++ b/chrome/browser/ui/search/search_ipc_router_policy_impl.cc
@@ -27,44 +27,44 @@ bool SearchIPCRouterPolicyImpl::ShouldProcessSetVoiceSearchSupport() {
}
bool SearchIPCRouterPolicyImpl::ShouldProcessFocusOmnibox(bool is_active_tab) {
- return is_active_tab && !is_incognito_ && chrome::IsInstantNTP(web_contents_);
+ return is_active_tab && !is_incognito_ && search::IsInstantNTP(web_contents_);
}
bool SearchIPCRouterPolicyImpl::ShouldProcessNavigateToURL(bool is_active_tab) {
- return is_active_tab && !is_incognito_ && chrome::IsInstantNTP(web_contents_);
+ return is_active_tab && !is_incognito_ && search::IsInstantNTP(web_contents_);
}
bool SearchIPCRouterPolicyImpl::ShouldProcessDeleteMostVisitedItem() {
- return !is_incognito_ && chrome::IsInstantNTP(web_contents_);
+ return !is_incognito_ && search::IsInstantNTP(web_contents_);
}
bool SearchIPCRouterPolicyImpl::ShouldProcessUndoMostVisitedDeletion() {
- return !is_incognito_ && chrome::IsInstantNTP(web_contents_);
+ return !is_incognito_ && search::IsInstantNTP(web_contents_);
}
bool SearchIPCRouterPolicyImpl::ShouldProcessUndoAllMostVisitedDeletions() {
- return !is_incognito_ && chrome::IsInstantNTP(web_contents_);
+ return !is_incognito_ && search::IsInstantNTP(web_contents_);
}
bool SearchIPCRouterPolicyImpl::ShouldProcessLogEvent() {
- return !is_incognito_ && chrome::IsInstantNTP(web_contents_);
+ return !is_incognito_ && search::IsInstantNTP(web_contents_);
}
bool SearchIPCRouterPolicyImpl::ShouldProcessPasteIntoOmnibox(
bool is_active_tab) {
- return is_active_tab && !is_incognito_ && chrome::IsInstantNTP(web_contents_);
+ return is_active_tab && !is_incognito_ && search::IsInstantNTP(web_contents_);
}
bool SearchIPCRouterPolicyImpl::ShouldProcessChromeIdentityCheck() {
- return !is_incognito_ && chrome::IsInstantNTP(web_contents_);
+ return !is_incognito_ && search::IsInstantNTP(web_contents_);
}
bool SearchIPCRouterPolicyImpl::ShouldProcessHistorySyncCheck() {
- return !is_incognito_ && chrome::IsInstantNTP(web_contents_);
+ return !is_incognito_ && search::IsInstantNTP(web_contents_);
}
bool SearchIPCRouterPolicyImpl::ShouldSendSetPromoInformation() {
- return !is_incognito_ && chrome::IsInstantNTP(web_contents_);
+ return !is_incognito_ && search::IsInstantNTP(web_contents_);
}
bool SearchIPCRouterPolicyImpl::ShouldSendSetDisplayInstantResults() {
@@ -89,11 +89,11 @@ bool SearchIPCRouterPolicyImpl::ShouldSendOmniboxFocusChanged() {
}
bool SearchIPCRouterPolicyImpl::ShouldSendMostVisitedItems() {
- return !is_incognito_ && chrome::IsInstantNTP(web_contents_);
+ return !is_incognito_ && search::IsInstantNTP(web_contents_);
}
bool SearchIPCRouterPolicyImpl::ShouldSendThemeBackgroundInfo() {
- return !is_incognito_ && chrome::IsInstantNTP(web_contents_);
+ return !is_incognito_ && search::IsInstantNTP(web_contents_);
}
bool SearchIPCRouterPolicyImpl::ShouldSendToggleVoiceSearch() {
« no previous file with comments | « chrome/browser/ui/search/search_ipc_router.cc ('k') | chrome/browser/ui/search/search_ipc_router_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698