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

Unified Diff: ios/chrome/browser/application_context_impl.cc

Issue 1380763003: [iOS] Integration of ChromeNetLog and NetExportUI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup whitelist Created 5 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/chrome/browser/application_context_impl.h ('k') | ios/chrome/browser/chrome_url_constants.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/application_context_impl.cc
diff --git a/ios/chrome/browser/application_context_impl.cc b/ios/chrome/browser/application_context_impl.cc
index 01684e6abb62a969e8d12b0d881656c82d599df0..8b3eec70fcbedf426cd7c99c977684f67cfd21b4 100644
--- a/ios/chrome/browser/application_context_impl.cc
+++ b/ios/chrome/browser/application_context_impl.cc
@@ -4,13 +4,23 @@
#include "ios/chrome/browser/application_context_impl.h"
+#include "base/command_line.h"
+#include "base/files/file_path.h"
#include "base/logging.h"
+#include "components/net_log/chrome_net_log.h"
#include "components/translate/core/browser/translate_download_manager.h"
+#include "ios/chrome/common/channel_info.h"
#include "ios/public/provider/chrome/browser/chrome_browser_provider.h"
+#include "net/log/net_log_capture_mode.h"
-ApplicationContextImpl::ApplicationContextImpl() {
+ApplicationContextImpl::ApplicationContextImpl(
+ const base::CommandLine& command_line) {
DCHECK(!GetApplicationContext());
SetApplicationContext(this);
+
+ net_log_.reset(new net_log::ChromeNetLog(
+ base::FilePath(), net::NetLogCaptureMode::Default(),
+ command_line.GetCommandLineString(), GetChannelString()));
}
ApplicationContextImpl::~ApplicationContextImpl() {
@@ -59,3 +69,7 @@ ApplicationContextImpl::GetBrowserPolicyConnector() {
rappor::RapporService* ApplicationContextImpl::GetRapporService() {
return ios::GetChromeBrowserProvider()->GetRapporService();
}
+
+net_log::ChromeNetLog* ApplicationContextImpl::GetNetLog() {
+ return net_log_.get();
+}
« no previous file with comments | « ios/chrome/browser/application_context_impl.h ('k') | ios/chrome/browser/chrome_url_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698