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

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

Issue 2151483004: Remove embeddedSearch.newTabPage.GetAppLauncherEnabled (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove unused include, rebase Created 4 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
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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 } 48 }
49 49
50 bool SearchIPCRouterPolicyImpl::ShouldProcessChromeIdentityCheck() { 50 bool SearchIPCRouterPolicyImpl::ShouldProcessChromeIdentityCheck() {
51 return !is_incognito_ && search::IsInstantNTP(web_contents_); 51 return !is_incognito_ && search::IsInstantNTP(web_contents_);
52 } 52 }
53 53
54 bool SearchIPCRouterPolicyImpl::ShouldProcessHistorySyncCheck() { 54 bool SearchIPCRouterPolicyImpl::ShouldProcessHistorySyncCheck() {
55 return !is_incognito_ && search::IsInstantNTP(web_contents_); 55 return !is_incognito_ && search::IsInstantNTP(web_contents_);
56 } 56 }
57 57
58 bool SearchIPCRouterPolicyImpl::ShouldSendSetPromoInformation() {
59 return !is_incognito_ && search::IsInstantNTP(web_contents_);
60 }
61
62 bool SearchIPCRouterPolicyImpl::ShouldSendSetDisplayInstantResults() { 58 bool SearchIPCRouterPolicyImpl::ShouldSendSetDisplayInstantResults() {
63 return !is_incognito_; 59 return !is_incognito_;
64 } 60 }
65 61
66 bool SearchIPCRouterPolicyImpl::ShouldSendSetSuggestionToPrefetch() { 62 bool SearchIPCRouterPolicyImpl::ShouldSendSetSuggestionToPrefetch() {
67 return !is_incognito_; 63 return !is_incognito_;
68 } 64 }
69 65
70 bool SearchIPCRouterPolicyImpl::ShouldSendSetInputInProgress( 66 bool SearchIPCRouterPolicyImpl::ShouldSendSetInputInProgress(
71 bool is_active_tab) { 67 bool is_active_tab) {
72 return is_active_tab && !is_incognito_; 68 return is_active_tab && !is_incognito_;
73 } 69 }
74 70
75 bool SearchIPCRouterPolicyImpl::ShouldSendOmniboxFocusChanged() { 71 bool SearchIPCRouterPolicyImpl::ShouldSendOmniboxFocusChanged() {
76 return !is_incognito_; 72 return !is_incognito_;
77 } 73 }
78 74
79 bool SearchIPCRouterPolicyImpl::ShouldSendMostVisitedItems() { 75 bool SearchIPCRouterPolicyImpl::ShouldSendMostVisitedItems() {
80 return !is_incognito_ && search::IsInstantNTP(web_contents_); 76 return !is_incognito_ && search::IsInstantNTP(web_contents_);
81 } 77 }
82 78
83 bool SearchIPCRouterPolicyImpl::ShouldSendThemeBackgroundInfo() { 79 bool SearchIPCRouterPolicyImpl::ShouldSendThemeBackgroundInfo() {
84 return !is_incognito_ && search::IsInstantNTP(web_contents_); 80 return !is_incognito_ && search::IsInstantNTP(web_contents_);
85 } 81 }
86 82
87 bool SearchIPCRouterPolicyImpl::ShouldSubmitQuery() { 83 bool SearchIPCRouterPolicyImpl::ShouldSubmitQuery() {
88 return true; 84 return true;
89 } 85 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698