OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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 "components/crash/core/browser/crashes_ui_util.h" | 5 #include "components/crash/core/browser/crashes_ui_util.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <utility> | 8 #include <utility> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/i18n/time_formatting.h" | 11 #include "base/i18n/time_formatting.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/values.h" | 13 #include "base/values.h" |
| 14 #include "components/strings/grit/components_chromium_strings.h" |
| 15 #include "components/strings/grit/components_strings.h" |
14 #include "components/upload_list/upload_list.h" | 16 #include "components/upload_list/upload_list.h" |
15 #include "grit/components_chromium_strings.h" | |
16 #include "grit/components_strings.h" | |
17 | 17 |
18 namespace crash { | 18 namespace crash { |
19 | 19 |
20 const CrashesUILocalizedString kCrashesUILocalizedStrings[] = { | 20 const CrashesUILocalizedString kCrashesUILocalizedStrings[] = { |
21 {"bugLinkText", IDS_CRASH_BUG_LINK_LABEL}, | 21 {"bugLinkText", IDS_CRASH_BUG_LINK_LABEL}, |
22 {"crashCountFormat", IDS_CRASH_CRASH_COUNT_BANNER_FORMAT}, | 22 {"crashCountFormat", IDS_CRASH_CRASH_COUNT_BANNER_FORMAT}, |
23 {"crashHeaderFormat", IDS_CRASH_CRASH_HEADER_FORMAT}, | 23 {"crashHeaderFormat", IDS_CRASH_CRASH_HEADER_FORMAT}, |
24 {"crashHeaderFormatLocalOnly", IDS_CRASH_CRASH_HEADER_FORMAT_LOCAL_ONLY}, | 24 {"crashHeaderFormatLocalOnly", IDS_CRASH_CRASH_HEADER_FORMAT_LOCAL_ONLY}, |
25 {"crashUploadTimeFormat", IDS_CRASH_UPLOAD_TIME_FORMAT}, | 25 {"crashUploadTimeFormat", IDS_CRASH_UPLOAD_TIME_FORMAT}, |
26 {"crashCaptureAndUploadTimeFormat", | 26 {"crashCaptureAndUploadTimeFormat", |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 base::TimeFormatFriendlyDateAndTime(info.capture_time)); | 79 base::TimeFormatFriendlyDateAndTime(info.capture_time)); |
80 } | 80 } |
81 crash->SetString("local_id", info.local_id); | 81 crash->SetString("local_id", info.local_id); |
82 crash->SetString("state", UploadInfoStateAsString(info.state)); | 82 crash->SetString("state", UploadInfoStateAsString(info.state)); |
83 crash->SetString("file_size", info.file_size); | 83 crash->SetString("file_size", info.file_size); |
84 out_value->Append(std::move(crash)); | 84 out_value->Append(std::move(crash)); |
85 } | 85 } |
86 } | 86 } |
87 | 87 |
88 } // namespace crash | 88 } // namespace crash |
OLD | NEW |