File tree Expand file tree Collapse file tree 11 files changed +20
-11
lines changed
bat-native-ads/src/bat/ads
internal/deprecated/client
bat-native-ledger/src/bat/ledger/internal/legacy Expand file tree Collapse file tree 11 files changed +20
-11
lines changed Original file line number Diff line number Diff line change 5
5
6
6
#include " bat/ads/ad_content_info.h"
7
7
8
+ #include " base/check.h"
8
9
#include " base/json/json_reader.h"
9
10
#include " base/json/json_writer.h"
10
11
#include " bat/ads/internal/base/logging_util.h"
@@ -137,7 +138,7 @@ bool AdContentInfo::FromValue(const base::Value::Dict& root) {
137
138
138
139
std::string AdContentInfo::ToJson () const {
139
140
std::string json;
140
- base::JSONWriter::Write (ToValue (), &json);
141
+ CHECK ( base::JSONWriter::Write (ToValue (), &json) );
141
142
return json;
142
143
}
143
144
Original file line number Diff line number Diff line change 5
5
6
6
#include " bat/ads/history_info.h"
7
7
8
+ #include " base/check.h"
8
9
#include " base/json/json_reader.h"
9
10
#include " base/json/json_writer.h"
10
11
#include " bat/ads/history_item_info.h"
@@ -48,7 +49,7 @@ bool HistoryInfo::FromValue(const base::Value::Dict& root) {
48
49
49
50
std::string HistoryInfo::ToJson () const {
50
51
std::string json;
51
- base::JSONWriter::Write (ToValue (), &json);
52
+ CHECK ( base::JSONWriter::Write (ToValue (), &json) );
52
53
return json;
53
54
}
54
55
Original file line number Diff line number Diff line change 5
5
6
6
#include " bat/ads/inline_content_ad_info.h"
7
7
8
+ #include " base/check.h"
8
9
#include " base/json/json_reader.h"
9
10
#include " base/json/json_writer.h"
10
11
#include " bat/ads/confirmation_type.h"
@@ -121,7 +122,7 @@ bool InlineContentAdInfo::FromValue(const base::Value::Dict& root) {
121
122
122
123
std::string InlineContentAdInfo::ToJson () const {
123
124
std::string json;
124
- base::JSONWriter::Write (ToValue (), &json);
125
+ CHECK ( base::JSONWriter::Write (ToValue (), &json) );
125
126
return json;
126
127
}
127
128
Original file line number Diff line number Diff line change @@ -212,7 +212,7 @@ bool ClientInfo::FromValue(const base::Value::Dict& root) {
212
212
213
213
std::string ClientInfo::ToJson () {
214
214
std::string json;
215
- base::JSONWriter::Write (ToValue (), &json);
215
+ CHECK ( base::JSONWriter::Write (ToValue (), &json) );
216
216
return json;
217
217
}
218
218
Original file line number Diff line number Diff line change 7
7
8
8
#include < utility>
9
9
10
+ #include " base/check.h"
10
11
#include " base/json/json_reader.h"
11
12
#include " base/json/json_writer.h"
12
13
@@ -129,7 +130,7 @@ bool AdPreferencesInfo::FromValue(const base::Value::Dict& root) {
129
130
130
131
std::string AdPreferencesInfo::ToJson () const {
131
132
std::string json;
132
- base::JSONWriter::Write (ToValue (), &json);
133
+ CHECK ( base::JSONWriter::Write (ToValue (), &json) );
133
134
return json;
134
135
}
135
136
Original file line number Diff line number Diff line change 7
7
8
8
#include < tuple>
9
9
10
+ #include " base/check.h"
10
11
#include " base/json/json_reader.h"
11
12
#include " base/json/json_writer.h"
12
13
@@ -156,7 +157,7 @@ bool NewTabPageAdInfo::FromValue(const base::Value::Dict& root) {
156
157
157
158
std::string NewTabPageAdInfo::ToJson () const {
158
159
std::string json;
159
- base::JSONWriter::Write (ToValue (), &json);
160
+ CHECK ( base::JSONWriter::Write (ToValue (), &json) );
160
161
return json;
161
162
}
162
163
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ bool NotificationAdInfo::FromValue(const base::Value::Dict& root) {
94
94
95
95
std::string NotificationAdInfo::ToJson () const {
96
96
std::string json;
97
- base::JSONWriter::Write (ToValue (), &json);
97
+ CHECK ( base::JSONWriter::Write (ToValue (), &json) );
98
98
return json;
99
99
}
100
100
Original file line number Diff line number Diff line change 7
7
8
8
#include < utility>
9
9
10
+ #include " base/check.h"
10
11
#include " base/json/json_reader.h"
11
12
#include " base/json/json_writer.h"
12
13
#include " base/json/values_util.h"
@@ -173,7 +174,7 @@ bool ClientProperties::FromValue(const base::Value::Dict& dict) {
173
174
174
175
std::string ClientProperties::ToJson () const {
175
176
std::string json;
176
- base::JSONWriter::Write (ToValue (), &json);
177
+ CHECK ( base::JSONWriter::Write (ToValue (), &json) );
177
178
return json;
178
179
}
179
180
Original file line number Diff line number Diff line change 7
7
8
8
#include < utility>
9
9
10
+ #include " base/check.h"
10
11
#include " base/json/json_reader.h"
11
12
#include " base/json/json_writer.h"
12
13
#include " base/json/values_util.h"
@@ -188,7 +189,7 @@ bool PublisherSettingsProperties::FromValue(const base::Value::Dict& dict) {
188
189
189
190
std::string PublisherSettingsProperties::ToJson () const {
190
191
std::string json;
191
- base::JSONWriter::Write (ToValue (), &json);
192
+ CHECK ( base::JSONWriter::Write (ToValue (), &json) );
192
193
return json;
193
194
}
194
195
Original file line number Diff line number Diff line change 5
5
6
6
#include " bat/ledger/internal/legacy/report_balance_properties.h"
7
7
8
+ #include " base/check.h"
8
9
#include " base/json/json_reader.h"
9
10
#include " base/json/json_writer.h"
10
11
#include " base/logging.h"
@@ -134,7 +135,7 @@ bool ReportBalanceProperties::FromValue(const base::Value::Dict& dict) {
134
135
135
136
std::string ReportBalanceProperties::ToJson () const {
136
137
std::string json;
137
- base::JSONWriter::Write (ToValue (), &json);
138
+ CHECK ( base::JSONWriter::Write (ToValue (), &json) );
138
139
return json;
139
140
}
140
141
Original file line number Diff line number Diff line change 6
6
#include " bat/ledger/internal/legacy/wallet_info_properties.h"
7
7
8
8
#include " base/base64.h"
9
+ #include " base/check.h"
9
10
#include " base/json/json_reader.h"
10
11
#include " base/json/json_writer.h"
11
12
#include " base/logging.h"
@@ -94,7 +95,7 @@ bool WalletInfoProperties::FromValue(const base::Value::Dict& dict) {
94
95
95
96
std::string WalletInfoProperties::ToJson () const {
96
97
std::string json;
97
- base::JSONWriter::Write (ToValue (), &json);
98
+ CHECK ( base::JSONWriter::Write (ToValue (), &json) );
98
99
return json;
99
100
}
100
101
You can’t perform that action at this time.
0 commit comments