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

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

Issue 15517005: Remove references to Profile from browser_context_keyed_service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase & style Created 7 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 | 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 #ifndef CHROME_BROWSER_SYNC_TEST_INTEGRATION_SEARCH_ENGINES_HELPER_H_ 5 #ifndef CHROME_BROWSER_SYNC_TEST_INTEGRATION_SEARCH_ENGINES_HELPER_H_
6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_SEARCH_ENGINES_HELPER_H_ 6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_SEARCH_ENGINES_HELPER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
11 #include "base/string16.h" 11 #include "base/string16.h"
12 12
13 class Profile; 13 class Profile;
14 class TemplateURL; 14 class TemplateURL;
15 class TemplateURLService; 15 class TemplateURLService;
16 16
17 typedef std::map<std::string, const TemplateURL*> GUIDToTURLMap; 17 typedef std::map<std::string, const TemplateURL*> GUIDToTURLMap;
18 18
19 namespace search_engines_helper { 19 namespace search_engines_helper {
20 20
21 // Used to access the search engines within a particular sync profile. 21 // Used to access the search engines within a particular sync profile.
22 TemplateURLService* GetServiceForProfile(int profile_index); 22 TemplateURLService* GetServiceForBrowserContext(int profile_index);
23 23
24 // Used to access the search engines within the verifier sync profile. 24 // Used to access the search engines within the verifier sync profile.
25 TemplateURLService* GetVerifierService(); 25 TemplateURLService* GetVerifierService();
26 26
27 // Compared a single TemplateURLService for a given profile to the verifier. 27 // Compared a single TemplateURLService for a given profile to the verifier.
28 // Retrns true iff their user-visible fields match. 28 // Retrns true iff their user-visible fields match.
29 bool ServiceMatchesVerifier(int profile_index); 29 bool ServiceMatchesVerifier(int profile_index);
30 30
31 // Returns true iff all TemplateURLServices match with the verifier. 31 // Returns true iff all TemplateURLServices match with the verifier.
32 bool AllServicesMatch(); 32 bool AllServicesMatch();
(...skipping 28 matching lines...) Expand all
61 void DeleteSearchEngineBySeed(int profile_index, int seed); 61 void DeleteSearchEngineBySeed(int profile_index, int seed);
62 62
63 // Change the search engine generated with |seed| in service at index 63 // Change the search engine generated with |seed| in service at index
64 // |profile_index| to be the new default. Does the same to the verifier, if it 64 // |profile_index| to be the new default. Does the same to the verifier, if it
65 // is used. 65 // is used.
66 void ChangeDefaultSearchProvider(int profile_index, int seed); 66 void ChangeDefaultSearchProvider(int profile_index, int seed);
67 67
68 } // namespace search_engines_helper 68 } // namespace search_engines_helper
69 69
70 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SEARCH_ENGINES_HELPER_H_ 70 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SEARCH_ENGINES_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698