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

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

Issue 1857663002: chrome/browser/autofill: scoped_ptr -> unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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 <memory>
Mathieu 2016/04/04 13:15:46 may not be needed?
vabr (Chromium) 2016/04/04 13:28:41 Done.
8
8 #include "base/memory/singleton.h" 9 #include "base/memory/singleton.h"
9 #include "chrome/browser/browser_process.h" 10 #include "chrome/browser/browser_process.h"
10 #include "chrome/browser/profiles/incognito_helpers.h" 11 #include "chrome/browser/profiles/incognito_helpers.h"
11 #include "chrome/browser/profiles/profile.h" 12 #include "chrome/browser/profiles/profile.h"
12 #include "chrome/browser/signin/account_tracker_service_factory.h" 13 #include "chrome/browser/signin/account_tracker_service_factory.h"
13 #include "chrome/browser/signin/signin_manager_factory.h" 14 #include "chrome/browser/signin/signin_manager_factory.h"
14 #include "chrome/browser/web_data_service_factory.h" 15 #include "chrome/browser/web_data_service_factory.h"
15 #include "components/autofill/core/browser/personal_data_manager.h" 16 #include "components/autofill/core/browser/personal_data_manager.h"
16 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h" 17 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h"
17 #include "components/keyed_service/content/browser_context_dependency_manager.h" 18 #include "components/keyed_service/content/browser_context_dependency_manager.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 profile->IsOffTheRecord()); 58 profile->IsOffTheRecord());
58 return service; 59 return service;
59 } 60 }
60 61
61 content::BrowserContext* PersonalDataManagerFactory::GetBrowserContextToUse( 62 content::BrowserContext* PersonalDataManagerFactory::GetBrowserContextToUse(
62 content::BrowserContext* context) const { 63 content::BrowserContext* context) const {
63 return chrome::GetBrowserContextOwnInstanceInIncognito(context); 64 return chrome::GetBrowserContextOwnInstanceInIncognito(context);
64 } 65 }
65 66
66 } // namespace autofill 67 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698