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

Side by Side Diff: chrome/test/base/testing_profile.cc

Issue 10535026: Move creation and ownership of DownloadManager from the embedder to content. This matches all the o… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix cros compile Created 8 years, 6 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/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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 #else 61 #else
62 #include "chrome/browser/policy/policy_service_stub.h" 62 #include "chrome/browser/policy/policy_service_stub.h"
63 #endif // defined(ENABLE_CONFIGURATION_POLICY) 63 #endif // defined(ENABLE_CONFIGURATION_POLICY)
64 64
65 #if defined(OS_CHROMEOS) 65 #if defined(OS_CHROMEOS)
66 #include "chrome/browser/chromeos/proxy_config_service_impl.h" 66 #include "chrome/browser/chromeos/proxy_config_service_impl.h"
67 #endif // defined(OS_CHROMEOS) 67 #endif // defined(OS_CHROMEOS)
68 68
69 using base::Time; 69 using base::Time;
70 using content::BrowserThread; 70 using content::BrowserThread;
71 using content::DownloadManager; 71 using content::DownloadManagerDelegate;
72 using testing::NiceMock; 72 using testing::NiceMock;
73 using testing::Return; 73 using testing::Return;
74 74
75 namespace { 75 namespace {
76 76
77 // Task used to make sure history has finished processing a request. Intended 77 // Task used to make sure history has finished processing a request. Intended
78 // for use with BlockUntilHistoryProcessesPendingRequests. 78 // for use with BlockUntilHistoryProcessesPendingRequests.
79 79
80 class QuittingHistoryDBTask : public HistoryDBTask { 80 class QuittingHistoryDBTask : public HistoryDBTask {
81 public: 81 public:
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after
534 } 534 }
535 535
536 history::TopSites* TestingProfile::GetTopSites() { 536 history::TopSites* TestingProfile::GetTopSites() {
537 return top_sites_.get(); 537 return top_sites_.get();
538 } 538 }
539 539
540 history::TopSites* TestingProfile::GetTopSitesWithoutCreating() { 540 history::TopSites* TestingProfile::GetTopSitesWithoutCreating() {
541 return top_sites_.get(); 541 return top_sites_.get();
542 } 542 }
543 543
544 DownloadManager* TestingProfile::GetDownloadManager() { 544 DownloadManagerDelegate* TestingProfile::GetDownloadManagerDelegate() {
545 return NULL; 545 return NULL;
546 } 546 }
547 547
548 net::URLRequestContextGetter* TestingProfile::GetRequestContext() { 548 net::URLRequestContextGetter* TestingProfile::GetRequestContext() {
549 return request_context_.get(); 549 return request_context_.get();
550 } 550 }
551 551
552 net::URLRequestContextGetter* TestingProfile::GetRequestContextForRenderProcess( 552 net::URLRequestContextGetter* TestingProfile::GetRequestContextForRenderProcess(
553 int renderer_child_id) { 553 int renderer_child_id) {
554 ExtensionService* extension_service = 554 ExtensionService* extension_service =
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
712 } 712 }
713 713
714 bool TestingProfile::WasCreatedByVersionOrLater(const std::string& version) { 714 bool TestingProfile::WasCreatedByVersionOrLater(const std::string& version) {
715 return true; 715 return true;
716 } 716 }
717 717
718 base::Callback<ChromeURLDataManagerBackend*(void)> 718 base::Callback<ChromeURLDataManagerBackend*(void)>
719 TestingProfile::GetChromeURLDataManagerBackendGetter() const { 719 TestingProfile::GetChromeURLDataManagerBackendGetter() const {
720 return base::Callback<ChromeURLDataManagerBackend*(void)>(); 720 return base::Callback<ChromeURLDataManagerBackend*(void)>();
721 } 721 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698