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

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

Issue 410533002: Merge 278958 "Discard ChromeViewHostMsg_SearchBox* IPCs if they ..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1985/src
Patch Set: Created 6 years, 5 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 "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 13 matching lines...) Expand all
24 24
25 bool SearchIPCRouterPolicyImpl::ShouldProcessSetVoiceSearchSupport() { 25 bool SearchIPCRouterPolicyImpl::ShouldProcessSetVoiceSearchSupport() {
26 return true; 26 return true;
27 } 27 }
28 28
29 bool SearchIPCRouterPolicyImpl::ShouldProcessFocusOmnibox(bool is_active_tab) { 29 bool SearchIPCRouterPolicyImpl::ShouldProcessFocusOmnibox(bool is_active_tab) {
30 return is_active_tab && !is_incognito_ && chrome::IsInstantNTP(web_contents_); 30 return is_active_tab && !is_incognito_ && chrome::IsInstantNTP(web_contents_);
31 } 31 }
32 32
33 bool SearchIPCRouterPolicyImpl::ShouldProcessNavigateToURL(bool is_active_tab) { 33 bool SearchIPCRouterPolicyImpl::ShouldProcessNavigateToURL(bool is_active_tab) {
34 return is_active_tab && !is_incognito_; 34 return is_active_tab && !is_incognito_ && chrome::IsInstantNTP(web_contents_);
35 } 35 }
36 36
37 bool SearchIPCRouterPolicyImpl::ShouldProcessDeleteMostVisitedItem() { 37 bool SearchIPCRouterPolicyImpl::ShouldProcessDeleteMostVisitedItem() {
38 return !is_incognito_ && chrome::IsInstantNTP(web_contents_); 38 return !is_incognito_ && chrome::IsInstantNTP(web_contents_);
39 } 39 }
40 40
41 bool SearchIPCRouterPolicyImpl::ShouldProcessUndoMostVisitedDeletion() { 41 bool SearchIPCRouterPolicyImpl::ShouldProcessUndoMostVisitedDeletion() {
42 return !is_incognito_ && chrome::IsInstantNTP(web_contents_); 42 return !is_incognito_ && chrome::IsInstantNTP(web_contents_);
43 } 43 }
44 44
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 return !is_incognito_ && chrome::IsInstantNTP(web_contents_); 92 return !is_incognito_ && chrome::IsInstantNTP(web_contents_);
93 } 93 }
94 94
95 bool SearchIPCRouterPolicyImpl::ShouldSendToggleVoiceSearch() { 95 bool SearchIPCRouterPolicyImpl::ShouldSendToggleVoiceSearch() {
96 return true; 96 return true;
97 } 97 }
98 98
99 bool SearchIPCRouterPolicyImpl::ShouldSubmitQuery() { 99 bool SearchIPCRouterPolicyImpl::ShouldSubmitQuery() {
100 return true; 100 return true;
101 } 101 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/search/search_ipc_router.cc ('k') | chrome/browser/ui/search/search_ipc_router_policy_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698