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

Side by Side Diff: chrome/browser/visitedlink/visitedlink_master_factory.cc

Issue 11928004: Create Visited link service with profile to make sure all visited link events are captured. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1312/src
Patch Set: Created 7 years, 11 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
« no previous file with comments | « chrome/browser/visitedlink/visitedlink_master_factory.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/visitedlink/visitedlink_master_factory.h" 5 #include "chrome/browser/visitedlink/visitedlink_master_factory.h"
6 6
7 #include "base/memory/singleton.h" 7 #include "base/memory/singleton.h"
8 #include "chrome/browser/profiles/profile_dependency_manager.h" 8 #include "chrome/browser/profiles/profile_dependency_manager.h"
9 #include "chrome/browser/visitedlink/visitedlink_master.h" 9 #include "chrome/browser/visitedlink/visitedlink_master.h"
10 10
(...skipping 22 matching lines...) Expand all
33 } 33 }
34 34
35 ProfileKeyedService* 35 ProfileKeyedService*
36 VisitedLinkMasterFactory::BuildServiceInstanceFor(Profile* profile) const { 36 VisitedLinkMasterFactory::BuildServiceInstanceFor(Profile* profile) const {
37 VisitedLinkMaster* visitedlink_master(new VisitedLinkMaster(profile)); 37 VisitedLinkMaster* visitedlink_master(new VisitedLinkMaster(profile));
38 if (visitedlink_master->Init()) 38 if (visitedlink_master->Init())
39 return visitedlink_master; 39 return visitedlink_master;
40 return NULL; 40 return NULL;
41 } 41 }
42 42
43 bool VisitedLinkMasterFactory::ServiceIsCreatedWithProfile() const {
44 return true;
45 }
46
43 bool VisitedLinkMasterFactory::ServiceIsNULLWhileTesting() const { 47 bool VisitedLinkMasterFactory::ServiceIsNULLWhileTesting() const {
44 return true; 48 return true;
45 } 49 }
OLDNEW
« no previous file with comments | « chrome/browser/visitedlink/visitedlink_master_factory.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698