Upstreaming browser/ui/uikit_ui_util from iOS.
[chromium-blink-merge.git] / ios / chrome / browser / crash_report / crash_upload_list.cc
blob17d551940ebc2d9f948a457fe0ab29f2a9f57654
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "ios/chrome/browser/crash_report/crash_upload_list.h"
7 #include "base/files/file_path.h"
8 #include "base/path_service.h"
9 #include "base/threading/sequenced_worker_pool.h"
10 #include "ios/chrome/browser/chrome_paths.h"
11 #include "ios/web/public/web_thread.h"
13 namespace ios {
15 scoped_refptr<CrashUploadList> CreateCrashUploadList(
16 UploadList::Delegate* delegate) {
17 base::FilePath crash_dir_path;
18 PathService::Get(ios::DIR_CRASH_DUMPS, &crash_dir_path);
19 base::FilePath upload_log_path =
20 crash_dir_path.AppendASCII(CrashUploadList::kReporterLogFilename);
21 return new CrashUploadList(delegate, upload_log_path,
22 web::WebThread::GetBlockingPool());
25 } // namespace ios