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

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: fix silly compile error Created 7 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/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 662 matching lines...) Expand 10 before | Expand all | Expand 10 after
673 } 673 }
674 674
675 void NetInternalsMessageHandler::RegisterMessages() { 675 void NetInternalsMessageHandler::RegisterMessages() {
676 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 676 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
677 677
678 Profile* profile = Profile::FromWebUI(web_ui()); 678 Profile* profile = Profile::FromWebUI(web_ui());
679 679
680 proxy_ = new IOThreadImpl(this->AsWeakPtr(), g_browser_process->io_thread(), 680 proxy_ = new IOThreadImpl(this->AsWeakPtr(), g_browser_process->io_thread(),
681 profile->GetRequestContext()); 681 profile->GetRequestContext());
682 proxy_->AddRequestContextGetter(profile->GetMediaRequestContext()); 682 proxy_->AddRequestContextGetter(profile->GetMediaRequestContext());
683 proxy_->AddRequestContextGetter(profile->GetRequestContextForExtensions());
684 #if defined(OS_CHROMEOS) 683 #if defined(OS_CHROMEOS)
685 syslogs_getter_.reset(new SystemLogsGetter(this, 684 syslogs_getter_.reset(new SystemLogsGetter(this,
686 chromeos::system::SyslogsProvider::GetInstance())); 685 chromeos::system::SyslogsProvider::GetInstance()));
687 #endif 686 #endif
688 687
689 prerender::PrerenderManager* prerender_manager = 688 prerender::PrerenderManager* prerender_manager =
690 prerender::PrerenderManagerFactory::GetForProfile(profile); 689 prerender::PrerenderManagerFactory::GetForProfile(profile);
691 if (prerender_manager) { 690 if (prerender_manager) {
692 prerender_manager_ = prerender_manager->AsWeakPtr(); 691 prerender_manager_ = prerender_manager->AsWeakPtr();
693 } else { 692 } else {
(...skipping 1174 matching lines...) Expand 10 before | Expand all | Expand 10 after
1868 } 1867 }
1869 1868
1870 NetInternalsUI::NetInternalsUI(content::WebUI* web_ui) 1869 NetInternalsUI::NetInternalsUI(content::WebUI* web_ui)
1871 : WebUIController(web_ui) { 1870 : WebUIController(web_ui) {
1872 web_ui->AddMessageHandler(new NetInternalsMessageHandler()); 1871 web_ui->AddMessageHandler(new NetInternalsMessageHandler());
1873 1872
1874 // Set up the chrome://net-internals/ source. 1873 // Set up the chrome://net-internals/ source.
1875 Profile* profile = Profile::FromWebUI(web_ui); 1874 Profile* profile = Profile::FromWebUI(web_ui);
1876 content::WebUIDataSource::Add(profile, CreateNetInternalsHTMLSource()); 1875 content::WebUIDataSource::Add(profile, CreateNetInternalsHTMLSource());
1877 } 1876 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698