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

Side by Side Diff: chrome/browser/sync/test/integration/search_engines_helper.cc

Issue 231863008: Rename SetDefaultSearchProvider. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 6 years, 8 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/sync/test/integration/search_engines_helper.h" 5 #include "chrome/browser/sync/test/integration/search_engines_helper.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/strings/string_util.h" 9 #include "base/strings/string_util.h"
10 #include "base/strings/stringprintf.h" 10 #include "base/strings/stringprintf.h"
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 EXPECT_TRUE(verifier_turl); 249 EXPECT_TRUE(verifier_turl);
250 GetVerifierService()->Remove(verifier_turl); 250 GetVerifierService()->Remove(verifier_turl);
251 } 251 }
252 } 252 }
253 253
254 void ChangeDefaultSearchProvider(int profile_index, int seed) { 254 void ChangeDefaultSearchProvider(int profile_index, int seed) {
255 TemplateURLService* service = GetServiceForBrowserContext(profile_index); 255 TemplateURLService* service = GetServiceForBrowserContext(profile_index);
256 ASSERT_TRUE(service); 256 ASSERT_TRUE(service);
257 TemplateURL* turl = service->GetTemplateURLForKeyword(CreateKeyword(seed)); 257 TemplateURL* turl = service->GetTemplateURLForKeyword(CreateKeyword(seed));
258 ASSERT_TRUE(turl); 258 ASSERT_TRUE(turl);
259 service->SetDefaultSearchProvider(turl); 259 service->SetUserSelectedDefaultSearchProvider(turl);
260 if (test()->use_verifier()) { 260 if (test()->use_verifier()) {
261 TemplateURL* verifier_turl = 261 TemplateURL* verifier_turl =
262 GetVerifierService()->GetTemplateURLForKeyword(CreateKeyword(seed)); 262 GetVerifierService()->GetTemplateURLForKeyword(CreateKeyword(seed));
263 ASSERT_TRUE(verifier_turl); 263 ASSERT_TRUE(verifier_turl);
264 GetVerifierService()->SetDefaultSearchProvider(verifier_turl); 264 GetVerifierService()->SetUserSelectedDefaultSearchProvider(verifier_turl);
265 } 265 }
266 } 266 }
267 267
268 } // namespace search_engines_helper 268 } // namespace search_engines_helper
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698