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

Side by Side Diff: chrome/browser/ui/search/search_ipc_router_policy_impl.cc

Issue 24940002: Send ChromeViewMsg_SearchBoxSetSuggestionToPrefetch IPC message from SearchIPCRouter. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comment Created 7 years, 2 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 | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698