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

Unified Diff: chrome/browser/crash_upload_list/crash_upload_list.cc

Issue 2301943003: Show not uploaded crashes for Android. (Closed)
Patch Set: rebase Created 4 years, 3 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/BUILD.gn ('k') | chrome/browser/crash_upload_list/crash_upload_list_android.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/crash_upload_list/crash_upload_list.cc
diff --git a/chrome/browser/crash_upload_list/crash_upload_list.cc b/chrome/browser/crash_upload_list/crash_upload_list.cc
index 38066399dd97214f2733abfe1c8d9393b1c211dc..6f0eeec3c6c2605452239e5f9ca29cbf0326589c 100644
--- a/chrome/browser/crash_upload_list/crash_upload_list.cc
+++ b/chrome/browser/crash_upload_list/crash_upload_list.cc
@@ -15,6 +15,10 @@
#include "chrome/browser/crash_upload_list/crash_upload_list_crashpad.h"
#endif
+#if defined(OS_ANDROID)
+#include "chrome/browser/crash_upload_list/crash_upload_list_android.h"
+#endif
+
scoped_refptr<CrashUploadList> CreateCrashUploadList(
UploadList::Delegate* delegate) {
#if defined(OS_MACOSX) || defined(OS_WIN)
@@ -25,7 +29,12 @@ scoped_refptr<CrashUploadList> CreateCrashUploadList(
PathService::Get(chrome::DIR_CRASH_DUMPS, &crash_dir_path);
base::FilePath upload_log_path =
crash_dir_path.AppendASCII(CrashUploadList::kReporterLogFilename);
+#if defined(OS_ANDROID)
+ return new CrashUploadListAndroid(delegate, upload_log_path,
+ content::BrowserThread::GetBlockingPool());
+#else
return new CrashUploadList(delegate, upload_log_path,
content::BrowserThread::GetBlockingPool());
-#endif
+#endif // defined(OS_ANDROID)
+#endif // defined(OS_MACOSX) || defined(OS_WIN)
}
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/crash_upload_list/crash_upload_list_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698