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

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

Issue 701973002: Separate checking the user identity and checking if the user is syncing his history in two differen… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Answered kmadhusu and dcheng Created 6 years 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698