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 //------------------------------------------------------------------------------ | 5 //------------------------------------------------------------------------------ |
6 // Description of the life cycle of a instance of MetricsService. | 6 // Description of the life cycle of a instance of MetricsService. |
7 // | 7 // |
8 // OVERVIEW | 8 // OVERVIEW |
9 // | 9 // |
10 // A MetricsService instance is created at ChromeFrame startup in | 10 // A MetricsService instance is created at ChromeFrame startup in |
(...skipping 27 matching lines...) Expand all Loading... |
38 //----------------------------------------------------------------------------- | 38 //----------------------------------------------------------------------------- |
39 | 39 |
40 #include "chrome_frame/metrics_service.h" | 40 #include "chrome_frame/metrics_service.h" |
41 | 41 |
42 #include <atlbase.h> | 42 #include <atlbase.h> |
43 #include <atlwin.h> | 43 #include <atlwin.h> |
44 #include <objbase.h> | 44 #include <objbase.h> |
45 #include <windows.h> | 45 #include <windows.h> |
46 | 46 |
47 #include "base/metrics/statistics_recorder.h" | 47 #include "base/metrics/statistics_recorder.h" |
48 #include "base/string16.h" | 48 #include "base/strings/string16.h" |
49 #include "base/string_util.h" | |
50 #include "base/stringprintf.h" | |
51 #include "base/strings/string_number_conversions.h" | 49 #include "base/strings/string_number_conversions.h" |
| 50 #include "base/strings/string_util.h" |
| 51 #include "base/strings/stringprintf.h" |
52 #include "base/strings/utf_string_conversions.h" | 52 #include "base/strings/utf_string_conversions.h" |
53 #include "base/synchronization/lock.h" | 53 #include "base/synchronization/lock.h" |
54 #include "base/win/scoped_comptr.h" | 54 #include "base/win/scoped_comptr.h" |
55 #include "chrome/common/chrome_version_info.h" | 55 #include "chrome/common/chrome_version_info.h" |
56 #include "chrome/common/metrics/metrics_log_base.h" | 56 #include "chrome/common/metrics/metrics_log_base.h" |
57 #include "chrome/common/metrics/metrics_log_manager.h" | 57 #include "chrome/common/metrics/metrics_log_manager.h" |
58 #include "chrome/installer/util/browser_distribution.h" | 58 #include "chrome/installer/util/browser_distribution.h" |
59 #include "chrome/installer/util/google_update_settings.h" | 59 #include "chrome/installer/util/google_update_settings.h" |
60 #include "chrome_frame/bind_status_callback_impl.h" | 60 #include "chrome_frame/bind_status_callback_impl.h" |
61 #include "chrome_frame/crash_reporting/crash_metrics.h" | 61 #include "chrome_frame/crash_reporting/crash_metrics.h" |
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
454 version += "-F"; | 454 version += "-F"; |
455 if (!version_info.IsOfficialBuild()) | 455 if (!version_info.IsOfficialBuild()) |
456 version.append("-devel"); | 456 version.append("-devel"); |
457 return version; | 457 return version; |
458 } else { | 458 } else { |
459 NOTREACHED() << "Unable to retrieve version string."; | 459 NOTREACHED() << "Unable to retrieve version string."; |
460 } | 460 } |
461 | 461 |
462 return std::string(); | 462 return std::string(); |
463 } | 463 } |
OLD | NEW |