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

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: Initial version 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* TestingProfile::GetRequestContextForMedia(
635 int renderer_child_id) {
635 return NULL; 636 return NULL;
636 } 637 }
637 638
638 net::URLRequestContextGetter* TestingProfile::GetRequestContextForExtensions() { 639 net::URLRequestContextGetter* TestingProfile::GetRequestContextForExtensions() {
639 if (!extensions_request_context_) 640 if (!extensions_request_context_)
640 extensions_request_context_ = new TestExtensionURLRequestContextGetter(); 641 extensions_request_context_ = new TestExtensionURLRequestContextGetter();
641 return extensions_request_context_.get(); 642 return extensions_request_context_.get();
642 } 643 }
643 644
644 net::SSLConfigService* TestingProfile::GetSSLConfigService() { 645 net::SSLConfigService* TestingProfile::GetSSLConfigService() {
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
805 build_called_ = true; 806 build_called_ = true;
806 return scoped_ptr<TestingProfile>(new TestingProfile( 807 return scoped_ptr<TestingProfile>(new TestingProfile(
807 path_, 808 path_,
808 delegate_, 809 delegate_,
809 extension_policy_, 810 extension_policy_,
810 pref_service_.Pass(), 811 pref_service_.Pass(),
811 user_cloud_policy_manager_.Pass())); 812 user_cloud_policy_manager_.Pass()));
812 } 813 }
813 814
814 815
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698