OLD | NEW |
---|---|
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "chrome/browser/ui/search/search_ipc_router_policy_impl.h" | 5 #include "chrome/browser/ui/search/search_ipc_router_policy_impl.h" |
6 | 6 |
7 #include "chrome/browser/profiles/profile.h" | 7 #include "chrome/browser/profiles/profile.h" |
8 #include "chrome/browser/search/search.h" | 8 #include "chrome/browser/search/search.h" |
9 #include "content/public/browser/web_contents.h" | 9 #include "content/public/browser/web_contents.h" |
10 | 10 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
52 | 52 |
53 bool SearchIPCRouterPolicyImpl::ShouldProcessPasteIntoOmnibox( | 53 bool SearchIPCRouterPolicyImpl::ShouldProcessPasteIntoOmnibox( |
54 bool is_active_tab) { | 54 bool is_active_tab) { |
55 return is_active_tab && !is_incognito_ && chrome::IsInstantNTP(web_contents_); | 55 return is_active_tab && !is_incognito_ && chrome::IsInstantNTP(web_contents_); |
56 } | 56 } |
57 | 57 |
58 bool SearchIPCRouterPolicyImpl::ShouldProcessChromeIdentityCheck() { | 58 bool SearchIPCRouterPolicyImpl::ShouldProcessChromeIdentityCheck() { |
59 return !is_incognito_ && chrome::IsInstantNTP(web_contents_); | 59 return !is_incognito_ && chrome::IsInstantNTP(web_contents_); |
60 } | 60 } |
61 | 61 |
62 bool SearchIPCRouterPolicyImpl::ShouldProcessHistorySyncCheck() { | |
dcheng
2014/11/21 20:50:32
This shouldn't block this patch, but it's a bit st
beaudoin
2014/11/21 21:16:37
Agreed. I'm not familiar with policy stuff though.
| |
63 return !is_incognito_ && chrome::IsInstantNTP(web_contents_); | |
64 } | |
65 | |
62 bool SearchIPCRouterPolicyImpl::ShouldSendSetPromoInformation() { | 66 bool SearchIPCRouterPolicyImpl::ShouldSendSetPromoInformation() { |
63 return !is_incognito_ && chrome::IsInstantNTP(web_contents_); | 67 return !is_incognito_ && chrome::IsInstantNTP(web_contents_); |
64 } | 68 } |
65 | 69 |
66 bool SearchIPCRouterPolicyImpl::ShouldSendSetDisplayInstantResults() { | 70 bool SearchIPCRouterPolicyImpl::ShouldSendSetDisplayInstantResults() { |
67 return !is_incognito_; | 71 return !is_incognito_; |
68 } | 72 } |
69 | 73 |
70 bool SearchIPCRouterPolicyImpl::ShouldSendSetSuggestionToPrefetch() { | 74 bool SearchIPCRouterPolicyImpl::ShouldSendSetSuggestionToPrefetch() { |
71 return !is_incognito_; | 75 return !is_incognito_; |
(...skipping 20 matching lines...) Expand all Loading... | |
92 return !is_incognito_ && chrome::IsInstantNTP(web_contents_); | 96 return !is_incognito_ && chrome::IsInstantNTP(web_contents_); |
93 } | 97 } |
94 | 98 |
95 bool SearchIPCRouterPolicyImpl::ShouldSendToggleVoiceSearch() { | 99 bool SearchIPCRouterPolicyImpl::ShouldSendToggleVoiceSearch() { |
96 return true; | 100 return true; |
97 } | 101 } |
98 | 102 |
99 bool SearchIPCRouterPolicyImpl::ShouldSubmitQuery() { | 103 bool SearchIPCRouterPolicyImpl::ShouldSubmitQuery() { |
100 return true; | 104 return true; |
101 } | 105 } |
OLD | NEW |