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

Side by Side Diff: chrome/browser/ui/webui/net_internals/net_internals_ui.cc

Issue 12546016: Remove the Extensions URLRequestContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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/browser/ui/webui/net_internals/net_internals_ui.h" 5 #include "chrome/browser/ui/webui/net_internals/net_internals_ui.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 643 matching lines...) Expand 10 before | Expand all | Expand 10 after
654 } 654 }
655 655
656 void NetInternalsMessageHandler::RegisterMessages() { 656 void NetInternalsMessageHandler::RegisterMessages() {
657 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 657 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
658 658
659 Profile* profile = Profile::FromWebUI(web_ui()); 659 Profile* profile = Profile::FromWebUI(web_ui());
660 660
661 proxy_ = new IOThreadImpl(this->AsWeakPtr(), g_browser_process->io_thread(), 661 proxy_ = new IOThreadImpl(this->AsWeakPtr(), g_browser_process->io_thread(),
662 profile->GetRequestContext()); 662 profile->GetRequestContext());
663 proxy_->AddRequestContextGetter(profile->GetMediaRequestContext()); 663 proxy_->AddRequestContextGetter(profile->GetMediaRequestContext());
664 proxy_->AddRequestContextGetter(profile->GetRequestContextForExtensions());
665 #if defined(OS_CHROMEOS) 664 #if defined(OS_CHROMEOS)
666 syslogs_getter_.reset(new SystemLogsGetter(this, 665 syslogs_getter_.reset(new SystemLogsGetter(this,
667 chromeos::system::SyslogsProvider::GetInstance())); 666 chromeos::system::SyslogsProvider::GetInstance()));
668 #endif 667 #endif
669 668
670 prerender::PrerenderManager* prerender_manager = 669 prerender::PrerenderManager* prerender_manager =
671 prerender::PrerenderManagerFactory::GetForProfile(profile); 670 prerender::PrerenderManagerFactory::GetForProfile(profile);
672 if (prerender_manager) { 671 if (prerender_manager) {
673 prerender_manager_ = prerender_manager->AsWeakPtr(); 672 prerender_manager_ = prerender_manager->AsWeakPtr();
674 } else { 673 } else {
(...skipping 1263 matching lines...) Expand 10 before | Expand all | Expand 10 after
1938 } 1937 }
1939 1938
1940 NetInternalsUI::NetInternalsUI(content::WebUI* web_ui) 1939 NetInternalsUI::NetInternalsUI(content::WebUI* web_ui)
1941 : WebUIController(web_ui) { 1940 : WebUIController(web_ui) {
1942 web_ui->AddMessageHandler(new NetInternalsMessageHandler()); 1941 web_ui->AddMessageHandler(new NetInternalsMessageHandler());
1943 1942
1944 // Set up the chrome://net-internals/ source. 1943 // Set up the chrome://net-internals/ source.
1945 Profile* profile = Profile::FromWebUI(web_ui); 1944 Profile* profile = Profile::FromWebUI(web_ui);
1946 content::WebUIDataSource::Add(profile, CreateNetInternalsHTMLSource()); 1945 content::WebUIDataSource::Add(profile, CreateNetInternalsHTMLSource());
1947 } 1946 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698