| Index: chrome/browser/metrics/android_metrics_provider.cc
|
| diff --git a/chrome/browser/metrics/android_metrics_provider.cc b/chrome/browser/metrics/android_metrics_provider.cc
|
| index c7f89e1f368d9c8ab42f1fed5ac11596193c953c..79847f4c9b7d58d2c6efc39178a69c3daaf5154b 100644
|
| --- a/chrome/browser/metrics/android_metrics_provider.cc
|
| +++ b/chrome/browser/metrics/android_metrics_provider.cc
|
| @@ -16,10 +16,8 @@
|
| namespace {
|
|
|
| // Increments a particular entry in the ListValue.
|
| -void IncrementListValue(base::ListValue* counts, int index) {
|
| - int current_count = 0;
|
| - counts->GetInteger(index, ¤t_count);
|
| - counts->Set(index, new base::Value(current_count + 1));
|
| +void IncrementListValue(base::Value* counts, int index) {
|
| + counts->GetList()[index] = base::Value(counts->GetList()[index].GetInt() + 1);
|
| }
|
|
|
| // Takes an int corresponding to a Type and returns the corresponding flag.
|
|
|