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

Unified Diff: chrome/browser/media/webrtc_log_upload_list.cc

Issue 17063004: Adding WebRTC log upload list under chrome://webrtc-logs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/media/webrtc_log_upload_list.h ('k') | chrome/browser/resources/media/webrtc_logs.css » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/media/webrtc_log_upload_list.cc
diff --git a/chrome/browser/media/webrtc_log_upload_list.cc b/chrome/browser/media/webrtc_log_upload_list.cc
new file mode 100644
index 0000000000000000000000000000000000000000..fdaaad072f226a50a450f2332510b14c7188474d
--- /dev/null
+++ b/chrome/browser/media/webrtc_log_upload_list.cc
@@ -0,0 +1,28 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/media/webrtc_log_upload_list.h"
+
+#include "base/files/file_path.h"
+#include "base/path_service.h"
+#include "chrome/common/chrome_paths.h"
+
+// static
+const char* WebRtcLogUploadList::kWebRtcLogListFilename =
+ "webrtc_log_uploads.log";
+
+// static
+WebRtcLogUploadList* WebRtcLogUploadList::Create(Delegate* delegate) {
+ base::FilePath log_dir_path;
+ PathService::Get(chrome::DIR_USER_DATA, &log_dir_path);
+ base::FilePath upload_log_path =
+ log_dir_path.AppendASCII(kWebRtcLogListFilename);
+ return new WebRtcLogUploadList(delegate, upload_log_path);
+}
+
+WebRtcLogUploadList::WebRtcLogUploadList(Delegate* delegate,
+ const base::FilePath& upload_log_path)
+ : UploadList(delegate, upload_log_path) {}
+
+WebRtcLogUploadList::~WebRtcLogUploadList() {}
« no previous file with comments | « chrome/browser/media/webrtc_log_upload_list.h ('k') | chrome/browser/resources/media/webrtc_logs.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698