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

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

Issue 1543203002: Remove a variety of no-longer-used query params. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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.h" 5 #include "chrome/browser/ui/search/search_ipc_router.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 "chrome/common/render_messages.h" 9 #include "chrome/common/render_messages.h"
10 #include "components/search/search.h" 10 #include "components/search/search.h"
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 91
92 void SearchIPCRouter::SetSuggestionToPrefetch( 92 void SearchIPCRouter::SetSuggestionToPrefetch(
93 const InstantSuggestion& suggestion) { 93 const InstantSuggestion& suggestion) {
94 if (!policy_->ShouldSendSetSuggestionToPrefetch()) 94 if (!policy_->ShouldSendSetSuggestionToPrefetch())
95 return; 95 return;
96 96
97 Send(new ChromeViewMsg_SearchBoxSetSuggestionToPrefetch(routing_id(), 97 Send(new ChromeViewMsg_SearchBoxSetSuggestionToPrefetch(routing_id(),
98 suggestion)); 98 suggestion));
99 } 99 }
100 100
101 void SearchIPCRouter::SetOmniboxStartMargin(int start_margin) {
102 if (!policy_->ShouldSendSetOmniboxStartMargin())
103 return;
104
105 Send(new ChromeViewMsg_SearchBoxMarginChange(routing_id(), start_margin));
106 }
107
108 void SearchIPCRouter::SetInputInProgress(bool input_in_progress) { 101 void SearchIPCRouter::SetInputInProgress(bool input_in_progress) {
109 if (!policy_->ShouldSendSetInputInProgress(is_active_tab_)) 102 if (!policy_->ShouldSendSetInputInProgress(is_active_tab_))
110 return; 103 return;
111 104
112 Send(new ChromeViewMsg_SearchBoxSetInputInProgress(routing_id(), 105 Send(new ChromeViewMsg_SearchBoxSetInputInProgress(routing_id(),
113 input_in_progress)); 106 input_in_progress));
114 } 107 }
115 108
116 void SearchIPCRouter::OmniboxFocusChanged(OmniboxFocusState state, 109 void SearchIPCRouter::OmniboxFocusChanged(OmniboxFocusState state,
117 OmniboxFocusChangeReason reason) { 110 OmniboxFocusChangeReason reason) {
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 331
339 void SearchIPCRouter::set_delegate_for_testing(Delegate* delegate) { 332 void SearchIPCRouter::set_delegate_for_testing(Delegate* delegate) {
340 DCHECK(delegate); 333 DCHECK(delegate);
341 delegate_ = delegate; 334 delegate_ = delegate;
342 } 335 }
343 336
344 void SearchIPCRouter::set_policy_for_testing(scoped_ptr<Policy> policy) { 337 void SearchIPCRouter::set_policy_for_testing(scoped_ptr<Policy> policy) {
345 DCHECK(policy.get()); 338 DCHECK(policy.get());
346 policy_.reset(policy.release()); 339 policy_.reset(policy.release());
347 } 340 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698