OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/browser/chromeos/contacts/contact_database.h" | 5 #include "chrome/browser/chromeos/contacts/contact_database.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 | 8 |
9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
11 #include "base/task/sequenced_task_runner.h" | 11 #include "base/sequenced_task_runner.h" |
12 #include "base/threading/sequenced_worker_pool.h" | 12 #include "base/threading/sequenced_worker_pool.h" |
13 #include "chrome/browser/chromeos/contacts/contact.pb.h" | 13 #include "chrome/browser/chromeos/contacts/contact.pb.h" |
14 #include "content/public/browser/browser_thread.h" | 14 #include "content/public/browser/browser_thread.h" |
15 #include "third_party/leveldatabase/src/include/leveldb/db.h" | 15 #include "third_party/leveldatabase/src/include/leveldb/db.h" |
16 #include "third_party/leveldatabase/src/include/leveldb/iterator.h" | 16 #include "third_party/leveldatabase/src/include/leveldb/iterator.h" |
17 #include "third_party/leveldatabase/src/include/leveldb/options.h" | 17 #include "third_party/leveldatabase/src/include/leveldb/options.h" |
18 #include "third_party/leveldatabase/src/include/leveldb/slice.h" | 18 #include "third_party/leveldatabase/src/include/leveldb/slice.h" |
19 #include "third_party/leveldatabase/src/include/leveldb/status.h" | 19 #include "third_party/leveldatabase/src/include/leveldb/status.h" |
20 #include "third_party/leveldatabase/src/include/leveldb/write_batch.h" | 20 #include "third_party/leveldatabase/src/include/leveldb/write_batch.h" |
21 | 21 |
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 db_iterator->Next(); | 333 db_iterator->Next(); |
334 } | 334 } |
335 | 335 |
336 *success = true; | 336 *success = true; |
337 UMA_HISTOGRAM_ENUMERATION("Contacts.DatabaseLoadResult", | 337 UMA_HISTOGRAM_ENUMERATION("Contacts.DatabaseLoadResult", |
338 HISTOGRAM_LOAD_RESULT_SUCCESS, | 338 HISTOGRAM_LOAD_RESULT_SUCCESS, |
339 HISTOGRAM_LOAD_RESULT_MAX_VALUE); | 339 HISTOGRAM_LOAD_RESULT_MAX_VALUE); |
340 } | 340 } |
341 | 341 |
342 } // namespace contacts | 342 } // namespace contacts |
OLD | NEW |