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 "build/build_config.h" | 7 #include "build/build_config.h" |
8 #include "chrome/browser/profiles/profile.h" | 8 #include "chrome/browser/profiles/profile.h" |
9 #include "chrome/browser/search/search.h" | 9 #include "chrome/browser/search/search.h" |
10 #include "chrome/browser/ui/browser_finder.h" | 10 #include "chrome/browser/ui/browser_finder.h" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 SearchIPCRouterPolicyImpl::~SearchIPCRouterPolicyImpl() {} | 42 SearchIPCRouterPolicyImpl::~SearchIPCRouterPolicyImpl() {} |
43 | 43 |
44 bool SearchIPCRouterPolicyImpl::ShouldProcessSetVoiceSearchSupport() { | 44 bool SearchIPCRouterPolicyImpl::ShouldProcessSetVoiceSearchSupport() { |
45 return true; | 45 return true; |
46 } | 46 } |
47 | 47 |
48 bool SearchIPCRouterPolicyImpl::ShouldSendSetDisplayInstantResults() { | 48 bool SearchIPCRouterPolicyImpl::ShouldSendSetDisplayInstantResults() { |
49 return !is_incognito_; | 49 return !is_incognito_; |
50 } | 50 } |
51 | 51 |
| 52 bool SearchIPCRouterPolicyImpl::ShouldSendSetSuggestionToPrefetch() { |
| 53 return !is_incognito_; |
| 54 } |
| 55 |
52 bool SearchIPCRouterPolicyImpl::ShouldSendMostVisitedItems() { | 56 bool SearchIPCRouterPolicyImpl::ShouldSendMostVisitedItems() { |
53 return !is_incognito_ && chrome::IsInstantNTP(web_contents_); | 57 return !is_incognito_ && chrome::IsInstantNTP(web_contents_); |
54 } | 58 } |
55 | 59 |
56 bool SearchIPCRouterPolicyImpl::ShouldSendThemeBackgroundInfo() { | 60 bool SearchIPCRouterPolicyImpl::ShouldSendThemeBackgroundInfo() { |
57 return !is_incognito_ && chrome::IsInstantNTP(web_contents_); | 61 return !is_incognito_ && chrome::IsInstantNTP(web_contents_); |
58 } | 62 } |
OLD | NEW |