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

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

Issue 10836305: Ensure that isolated apps use the right cookies for media requests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix review comments Created 8 years, 4 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 613 matching lines...) Expand 10 before | Expand all | Expand 10 after
624 } 624 }
625 625
626 void TestingProfile::ResetRequestContext() { 626 void TestingProfile::ResetRequestContext() {
627 // Any objects holding live URLFetchers should be deleted before the request 627 // Any objects holding live URLFetchers should be deleted before the request
628 // context is shut down. 628 // context is shut down.
629 TemplateURLFetcherFactory::ShutdownForProfile(this); 629 TemplateURLFetcherFactory::ShutdownForProfile(this);
630 630
631 request_context_ = NULL; 631 request_context_ = NULL;
632 } 632 }
633 633
634 net::URLRequestContextGetter* TestingProfile::GetRequestContextForMedia() { 634 net::URLRequestContextGetter*
635 TestingProfile::GetDefaultRequestContextForMedia() {
635 return NULL; 636 return NULL;
636 } 637 }
637 638
639 net::URLRequestContextGetter* TestingProfile::GetRequestContextForMedia(
640 int renderer_child_id) {
641 return NULL;
642 }
643
638 net::URLRequestContextGetter* TestingProfile::GetRequestContextForExtensions() { 644 net::URLRequestContextGetter* TestingProfile::GetRequestContextForExtensions() {
639 if (!extensions_request_context_) 645 if (!extensions_request_context_)
640 extensions_request_context_ = new TestExtensionURLRequestContextGetter(); 646 extensions_request_context_ = new TestExtensionURLRequestContextGetter();
641 return extensions_request_context_.get(); 647 return extensions_request_context_.get();
642 } 648 }
643 649
644 net::SSLConfigService* TestingProfile::GetSSLConfigService() { 650 net::SSLConfigService* TestingProfile::GetSSLConfigService() {
645 return NULL; 651 return NULL;
646 } 652 }
647 653
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
805 build_called_ = true; 811 build_called_ = true;
806 return scoped_ptr<TestingProfile>(new TestingProfile( 812 return scoped_ptr<TestingProfile>(new TestingProfile(
807 path_, 813 path_,
808 delegate_, 814 delegate_,
809 extension_policy_, 815 extension_policy_,
810 pref_service_.Pass(), 816 pref_service_.Pass(),
811 user_cloud_policy_manager_.Pass())); 817 user_cloud_policy_manager_.Pass()));
812 } 818 }
813 819
814 820
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698