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

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

Issue 16871010: Rewrite scoped_ptr<T>(NULL) to use the default ctor in chrome/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
« no previous file with comments | « chrome/browser/ui/webui/chromeos/system_info_ui.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 911 matching lines...) Expand 10 before | Expand all | Expand 10 after
922 // 922 //
923 // NetInternalsMessageHandler::SystemLogsGetter 923 // NetInternalsMessageHandler::SystemLogsGetter
924 // 924 //
925 //////////////////////////////////////////////////////////////////////////////// 925 ////////////////////////////////////////////////////////////////////////////////
926 926
927 NetInternalsMessageHandler::SystemLogsGetter::SystemLogsGetter( 927 NetInternalsMessageHandler::SystemLogsGetter::SystemLogsGetter(
928 NetInternalsMessageHandler* handler, 928 NetInternalsMessageHandler* handler,
929 chromeos::system::SyslogsProvider* syslogs_provider) 929 chromeos::system::SyslogsProvider* syslogs_provider)
930 : handler_(handler), 930 : handler_(handler),
931 syslogs_provider_(syslogs_provider), 931 syslogs_provider_(syslogs_provider),
932 logs_(NULL),
933 logs_received_(false), 932 logs_received_(false),
934 logs_requested_(false) { 933 logs_requested_(false) {
935 if (!syslogs_provider_) 934 if (!syslogs_provider_)
936 LOG(ERROR) << "System access library not loaded"; 935 LOG(ERROR) << "System access library not loaded";
937 } 936 }
938 937
939 NetInternalsMessageHandler::SystemLogsGetter::~SystemLogsGetter() { 938 NetInternalsMessageHandler::SystemLogsGetter::~SystemLogsGetter() {
940 DeleteSystemLogs(); 939 DeleteSystemLogs();
941 } 940 }
942 941
(...skipping 1057 matching lines...) Expand 10 before | Expand all | Expand 10 after
2000 } 1999 }
2001 2000
2002 NetInternalsUI::NetInternalsUI(content::WebUI* web_ui) 2001 NetInternalsUI::NetInternalsUI(content::WebUI* web_ui)
2003 : WebUIController(web_ui) { 2002 : WebUIController(web_ui) {
2004 web_ui->AddMessageHandler(new NetInternalsMessageHandler()); 2003 web_ui->AddMessageHandler(new NetInternalsMessageHandler());
2005 2004
2006 // Set up the chrome://net-internals/ source. 2005 // Set up the chrome://net-internals/ source.
2007 Profile* profile = Profile::FromWebUI(web_ui); 2006 Profile* profile = Profile::FromWebUI(web_ui);
2008 content::WebUIDataSource::Add(profile, CreateNetInternalsHTMLSource()); 2007 content::WebUIDataSource::Add(profile, CreateNetInternalsHTMLSource());
2009 } 2008 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/chromeos/system_info_ui.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698