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

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

Issue 2884293002: Remove unused embeddedSearch.searchBox APIs (Closed)
Patch Set: . Created 3 years, 7 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.h" 5 #include "chrome/browser/ui/search/search_ipc_router.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "chrome/browser/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
10 #include "chrome/browser/search/instant_service.h" 10 #include "chrome/browser/search/instant_service.h"
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 } 155 }
156 156
157 void SearchIPCRouter::SendThemeBackgroundInfo( 157 void SearchIPCRouter::SendThemeBackgroundInfo(
158 const ThemeBackgroundInfo& theme_info) { 158 const ThemeBackgroundInfo& theme_info) {
159 if (!policy_->ShouldSendThemeBackgroundInfo()) 159 if (!policy_->ShouldSendThemeBackgroundInfo())
160 return; 160 return;
161 161
162 search_box()->ThemeChanged(theme_info); 162 search_box()->ThemeChanged(theme_info);
163 } 163 }
164 164
165 void SearchIPCRouter::Submit(const base::string16& text, 165 void SearchIPCRouter::Submit(const EmbeddedSearchRequestParams& params) {
166 const EmbeddedSearchRequestParams& params) {
167 if (!policy_->ShouldSubmitQuery()) 166 if (!policy_->ShouldSubmitQuery())
168 return; 167 return;
169 168
170 search_box()->Submit(text, params); 169 search_box()->Submit(params);
171 } 170 }
172 171
173 void SearchIPCRouter::OnTabActivated() { 172 void SearchIPCRouter::OnTabActivated() {
174 is_active_tab_ = true; 173 is_active_tab_ = true;
175 } 174 }
176 175
177 void SearchIPCRouter::OnTabDeactivated() { 176 void SearchIPCRouter::OnTabDeactivated() {
178 is_active_tab_ = false; 177 is_active_tab_ = false;
179 } 178 }
180 179
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 294
296 void SearchIPCRouter::set_delegate_for_testing(Delegate* delegate) { 295 void SearchIPCRouter::set_delegate_for_testing(Delegate* delegate) {
297 DCHECK(delegate); 296 DCHECK(delegate);
298 delegate_ = delegate; 297 delegate_ = delegate;
299 } 298 }
300 299
301 void SearchIPCRouter::set_policy_for_testing(std::unique_ptr<Policy> policy) { 300 void SearchIPCRouter::set_policy_for_testing(std::unique_ptr<Policy> policy) {
302 DCHECK(policy); 301 DCHECK(policy);
303 policy_ = std::move(policy); 302 policy_ = std::move(policy);
304 } 303 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698