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/upload_list/upload_list.h" | 14 #include "components/upload_list/upload_list.h" |
15 #include "grit/components_chromium_strings.h" | 15 #include "grit/components_chromium_strings.h" |
16 #include "grit/components_google_chrome_strings.h" | |
17 #include "grit/components_strings.h" | 16 #include "grit/components_strings.h" |
18 | 17 |
19 namespace crash { | 18 namespace crash { |
20 | 19 |
21 const CrashesUILocalizedString kCrashesUILocalizedStrings[] = { | 20 const CrashesUILocalizedString kCrashesUILocalizedStrings[] = { |
22 {"bugLinkText", IDS_CRASH_BUG_LINK_LABEL}, | 21 {"bugLinkText", IDS_CRASH_BUG_LINK_LABEL}, |
23 {"crashCountFormat", IDS_CRASH_CRASH_COUNT_BANNER_FORMAT}, | 22 {"crashCountFormat", IDS_CRASH_CRASH_COUNT_BANNER_FORMAT}, |
24 {"crashHeaderFormat", IDS_CRASH_CRASH_HEADER_FORMAT}, | 23 {"crashHeaderFormat", IDS_CRASH_CRASH_HEADER_FORMAT}, |
25 {"crashHeaderFormatLocalOnly", IDS_CRASH_CRASH_HEADER_FORMAT_LOCAL_ONLY}, | 24 {"crashHeaderFormatLocalOnly", IDS_CRASH_CRASH_HEADER_FORMAT_LOCAL_ONLY}, |
26 {"crashTimeFormat", IDS_CRASH_CRASH_TIME_FORMAT}, | 25 {"crashTimeFormat", IDS_CRASH_CRASH_TIME_FORMAT}, |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 crash->SetString("time", | 69 crash->SetString("time", |
71 base::TimeFormatFriendlyDateAndTime(info.capture_time)); | 70 base::TimeFormatFriendlyDateAndTime(info.capture_time)); |
72 } | 71 } |
73 crash->SetString("local_id", info.local_id); | 72 crash->SetString("local_id", info.local_id); |
74 crash->SetString("state", UploadInfoStateAsString(info.state)); | 73 crash->SetString("state", UploadInfoStateAsString(info.state)); |
75 out_value->Append(std::move(crash)); | 74 out_value->Append(std::move(crash)); |
76 } | 75 } |
77 } | 76 } |
78 | 77 |
79 } // namespace crash | 78 } // namespace crash |
OLD | NEW |