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

Side by Side Diff: chrome/test/base/testing_profile.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
« no previous file with comments | « chrome/test/base/testing_profile.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) 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/test/base/testing_profile.h" 5 #include "chrome/test/base/testing_profile.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 8
9 #include "base/base_paths.h" 9 #include "base/base_paths.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 } 525 }
526 526
527 history::TopSites* TestingProfile::GetTopSitesWithoutCreating() { 527 history::TopSites* TestingProfile::GetTopSitesWithoutCreating() {
528 return top_sites_.get(); 528 return top_sites_.get();
529 } 529 }
530 530
531 DownloadManager* TestingProfile::GetDownloadManager() { 531 DownloadManager* TestingProfile::GetDownloadManager() {
532 return NULL; 532 return NULL;
533 } 533 }
534 534
535 PersonalDataManager* TestingProfile::GetPersonalDataManager() {
536 return NULL;
537 }
538
539 fileapi::FileSystemContext* TestingProfile::GetFileSystemContext() { 535 fileapi::FileSystemContext* TestingProfile::GetFileSystemContext() {
540 if (!file_system_context_) { 536 if (!file_system_context_) {
541 file_system_context_ = new fileapi::FileSystemContext( 537 file_system_context_ = new fileapi::FileSystemContext(
542 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE), 538 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE),
543 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO), 539 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO),
544 GetExtensionSpecialStoragePolicy(), 540 GetExtensionSpecialStoragePolicy(),
545 NULL, 541 NULL,
546 GetPath(), 542 GetPath(),
547 IsOffTheRecord(), 543 IsOffTheRecord(),
548 true, // Allow file access from files. 544 true, // Allow file access from files.
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
797 quota::SpecialStoragePolicy* TestingProfile::GetSpecialStoragePolicy() { 793 quota::SpecialStoragePolicy* TestingProfile::GetSpecialStoragePolicy() {
798 return GetExtensionSpecialStoragePolicy(); 794 return GetExtensionSpecialStoragePolicy();
799 } 795 }
800 796
801 void TestingProfile::DestroyWebDataService() { 797 void TestingProfile::DestroyWebDataService() {
802 if (!web_data_service_.get()) 798 if (!web_data_service_.get())
803 return; 799 return;
804 800
805 web_data_service_->Shutdown(); 801 web_data_service_->Shutdown();
806 } 802 }
OLDNEW
« no previous file with comments | « chrome/test/base/testing_profile.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698