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

Unified Diff: chrome/browser/ui/views/payments/shipping_address_editor_view_controller.cc

Issue 2823073003: Make Use of Value::GetList API
Patch Set: Further Usages Created 3 years, 8 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
Index: chrome/browser/ui/views/payments/shipping_address_editor_view_controller.cc
diff --git a/chrome/browser/ui/views/payments/shipping_address_editor_view_controller.cc b/chrome/browser/ui/views/payments/shipping_address_editor_view_controller.cc
index d03787345ad9ce12a21b903de5472d4946e10f63..19d00704f2eea194ee8f178236d42645c1d656d9 100644
--- a/chrome/browser/ui/views/payments/shipping_address_editor_view_controller.cc
+++ b/chrome/browser/ui/views/payments/shipping_address_editor_view_controller.cc
@@ -254,11 +254,8 @@ void ShippingAddressEditorViewController::UpdateEditorFields() {
components.get(), &unused);
for (size_t line_index = 0; line_index < components->GetSize();
++line_index) {
- const base::ListValue* line = nullptr;
- if (!components->GetList(line_index, &line)) {
- NOTREACHED();
- return;
- }
+ const base::ListValue* line = static_cast<const base::ListValue*>(
+ &components->base::Value::GetList()[line_index]);
DCHECK_NE(nullptr, line);
for (size_t component_index = 0; component_index < line->GetSize();
++component_index) {
« no previous file with comments | « chrome/browser/net/predictor.cc ('k') | chrome/browser/ui/webui/chromeos/emulator/device_emulator_message_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698