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

Side by Side Diff: chrome/browser/search_engines/template_url_service_factory.cc

Issue 7285014: [wip] Profile: Sketch of a creation system. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Y U NO LIEK CONST, MAC? Created 9 years, 5 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/search_engines/template_url_service_factory.h" 5 #include "chrome/browser/search_engines/template_url_service_factory.h"
6 6
7 #include "chrome/browser/search_engines/template_url_service.h" 7 #include "chrome/browser/search_engines/template_url_service.h"
8 #include "chrome/browser/profiles/profile_dependency_manager.h" 8 #include "chrome/browser/profiles/profile_dependency_manager.h"
9 9
10 TemplateURLService* TemplateURLServiceFactory::GetForProfile(Profile* profile) { 10 TemplateURLService* TemplateURLServiceFactory::GetForProfile(Profile* profile) {
(...skipping 18 matching lines...) Expand all
29 29
30 ProfileKeyedService* TemplateURLServiceFactory::BuildServiceInstanceFor( 30 ProfileKeyedService* TemplateURLServiceFactory::BuildServiceInstanceFor(
31 Profile* profile) const { 31 Profile* profile) const {
32 return new TemplateURLService(profile); 32 return new TemplateURLService(profile);
33 } 33 }
34 34
35 bool TemplateURLServiceFactory::ServiceRedirectedInIncognito() { 35 bool TemplateURLServiceFactory::ServiceRedirectedInIncognito() {
36 return true; 36 return true;
37 } 37 }
38 38
39 bool TemplateURLServiceFactory::ServiceIsNULLWhileTesting() {
40 return true;
41 }
42
39 void TemplateURLServiceFactory::ProfileShutdown(Profile* profile) { 43 void TemplateURLServiceFactory::ProfileShutdown(Profile* profile) {
40 // We shutdown AND destroy the TemplateURLService during this pass. 44 // We shutdown AND destroy the TemplateURLService during this pass.
41 // TemplateURLService schedules a task on the WebDataService from its 45 // TemplateURLService schedules a task on the WebDataService from its
42 // destructor. Delete it first to ensure the task gets scheduled before we 46 // destructor. Delete it first to ensure the task gets scheduled before we
43 // shut down the database. 47 // shut down the database.
44 ProfileKeyedServiceFactory::ProfileShutdown(profile); 48 ProfileKeyedServiceFactory::ProfileShutdown(profile);
45 ProfileKeyedServiceFactory::ProfileDestroyed(profile); 49 ProfileKeyedServiceFactory::ProfileDestroyed(profile);
46 } 50 }
47 51
48 void TemplateURLServiceFactory::ProfileDestroyed(Profile* profile) { 52 void TemplateURLServiceFactory::ProfileDestroyed(Profile* profile) {
49 // Don't double delete. 53 // Don't double delete.
50 } 54 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698