OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/metrics/metrics_log.h" | 5 #include "chrome/browser/metrics/metrics_log.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/base64.h" | 10 #include "base/base64.h" |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/file_util.h" | 12 #include "base/file_util.h" |
13 #include "base/file_version_info.h" | 13 #include "base/file_version_info.h" |
14 #include "base/md5.h" | |
15 #include "base/perftimer.h" | 14 #include "base/perftimer.h" |
16 #include "base/scoped_ptr.h" | 15 #include "base/scoped_ptr.h" |
17 #include "base/string_util.h" | 16 #include "base/string_util.h" |
18 #include "base/sys_info.h" | 17 #include "base/sys_info.h" |
19 #include "base/third_party/nspr/prtime.h" | 18 #include "base/third_party/nspr/prtime.h" |
20 #include "base/time.h" | 19 #include "base/time.h" |
21 #include "base/utf_string_conversions.h" | 20 #include "base/utf_string_conversions.h" |
22 #include "chrome/browser/autocomplete/autocomplete.h" | 21 #include "chrome/browser/autocomplete/autocomplete.h" |
23 #include "chrome/browser/browser_process.h" | 22 #include "chrome/browser/browser_process.h" |
24 #include "chrome/browser/gpu_process_host.h" | 23 #include "chrome/browser/gpu_process_host.h" |
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
445 const std::string result_type(AutocompleteMatch::TypeToString(i->type)); | 444 const std::string result_type(AutocompleteMatch::TypeToString(i->type)); |
446 if (!result_type.empty()) | 445 if (!result_type.empty()) |
447 WriteAttribute("resulttype", result_type); | 446 WriteAttribute("resulttype", result_type); |
448 WriteIntAttribute("relevance", i->relevance); | 447 WriteIntAttribute("relevance", i->relevance); |
449 WriteIntAttribute("isstarred", i->starred ? 1 : 0); | 448 WriteIntAttribute("isstarred", i->starred ? 1 : 0); |
450 } | 449 } |
451 } | 450 } |
452 | 451 |
453 ++num_events_; | 452 ++num_events_; |
454 } | 453 } |
OLD | NEW |