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

Side by Side Diff: chrome/browser/autofill/personal_data_manager_factory.cc

Issue 14392005: Allowing PersonalDataManagerFactory to create a service while incognito. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 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/autofill/personal_data_manager_factory.h" 5 #include "chrome/browser/autofill/personal_data_manager_factory.h"
6 6
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "base/memory/singleton.h" 8 #include "base/memory/singleton.h"
9 #include "chrome/browser/browser_process.h" 9 #include "chrome/browser/browser_process.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 PersonalDataManagerFactory::~PersonalDataManagerFactory() { 75 PersonalDataManagerFactory::~PersonalDataManagerFactory() {
76 } 76 }
77 77
78 ProfileKeyedService* PersonalDataManagerFactory::BuildServiceInstanceFor( 78 ProfileKeyedService* PersonalDataManagerFactory::BuildServiceInstanceFor(
79 Profile* profile) const { 79 Profile* profile) const {
80 PersonalDataManagerService* service = 80 PersonalDataManagerService* service =
81 new PersonalDataManagerServiceImpl(profile); 81 new PersonalDataManagerServiceImpl(profile);
82 return service; 82 return service;
83 } 83 }
84 84
85 bool PersonalDataManagerFactory::ServiceHasOwnInstanceInIncognito() const {
86 return true;
87 }
88
85 } // namespace autofill 89 } // namespace autofill
OLDNEW
« no previous file with comments | « chrome/browser/autofill/personal_data_manager_factory.h ('k') | components/autofill/browser/personal_data_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698