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

Side by Side Diff: chrome/browser/profiles/profile_impl.cc

Issue 7967024: Profile shouldn't own PersonalDataManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addresses isherman #11 Created 9 years, 3 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/profiles/profile_impl.h" 5 #include "chrome/browser/profiles/profile_impl.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/environment.h" 9 #include "base/environment.h"
10 #include "base/file_path.h" 10 #include "base/file_path.h"
(...skipping 1342 matching lines...) Expand 10 before | Expand all | Expand 10 after
1353 created_download_manager_ = true; 1353 created_download_manager_ = true;
1354 download_manager_.swap(dlm); 1354 download_manager_.swap(dlm);
1355 } 1355 }
1356 return download_manager_.get(); 1356 return download_manager_.get();
1357 } 1357 }
1358 1358
1359 bool ProfileImpl::HasCreatedDownloadManager() const { 1359 bool ProfileImpl::HasCreatedDownloadManager() const {
1360 return created_download_manager_; 1360 return created_download_manager_;
1361 } 1361 }
1362 1362
1363 PersonalDataManager* ProfileImpl::GetPersonalDataManager() {
1364 if (!personal_data_manager_.get()) {
1365 personal_data_manager_ = new PersonalDataManager();
1366 personal_data_manager_->Init(this);
1367 }
1368 return personal_data_manager_.get();
1369 }
1370
1371 fileapi::FileSystemContext* ProfileImpl::GetFileSystemContext() { 1363 fileapi::FileSystemContext* ProfileImpl::GetFileSystemContext() {
1372 CreateQuotaManagerAndClients(); 1364 CreateQuotaManagerAndClients();
1373 return file_system_context_.get(); 1365 return file_system_context_.get();
1374 } 1366 }
1375 1367
1376 quota::QuotaManager* ProfileImpl::GetQuotaManager() { 1368 quota::QuotaManager* ProfileImpl::GetQuotaManager() {
1377 CreateQuotaManagerAndClients(); 1369 CreateQuotaManagerAndClients();
1378 return quota_manager_.get(); 1370 return quota_manager_.get();
1379 } 1371 }
1380 1372
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after
1821 SpellCheckProfile* ProfileImpl::GetSpellCheckProfile() { 1813 SpellCheckProfile* ProfileImpl::GetSpellCheckProfile() {
1822 if (!spellcheck_profile_.get()) 1814 if (!spellcheck_profile_.get())
1823 spellcheck_profile_.reset(new SpellCheckProfile()); 1815 spellcheck_profile_.reset(new SpellCheckProfile());
1824 return spellcheck_profile_.get(); 1816 return spellcheck_profile_.get();
1825 } 1817 }
1826 1818
1827 void ProfileImpl::SetDownloadManagerDelegate( 1819 void ProfileImpl::SetDownloadManagerDelegate(
1828 ChromeDownloadManagerDelegate* delegate) { 1820 ChromeDownloadManagerDelegate* delegate) {
1829 download_manager_delegate_ = delegate; 1821 download_manager_delegate_ = delegate;
1830 } 1822 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_impl.h ('k') | chrome/browser/sync/glue/autofill_change_processor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698