| 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 | 5 |
| 6 //------------------------------------------------------------------------------ | 6 //------------------------------------------------------------------------------ |
| 7 // Description of the life cycle of a instance of MetricsService. | 7 // Description of the life cycle of a instance of MetricsService. |
| 8 // | 8 // |
| 9 // OVERVIEW | 9 // OVERVIEW |
| 10 // | 10 // |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 | 51 |
| 52 #include "base/file_version_info.h" | 52 #include "base/file_version_info.h" |
| 53 #include "base/string_util.h" | 53 #include "base/string_util.h" |
| 54 #include "base/thread.h" | 54 #include "base/thread.h" |
| 55 #include "base/utf_string_conversions.h" | 55 #include "base/utf_string_conversions.h" |
| 56 #include "chrome/app/chrome_version_info.h" | 56 #include "chrome/app/chrome_version_info.h" |
| 57 #include "chrome/installer/util/browser_distribution.h" | 57 #include "chrome/installer/util/browser_distribution.h" |
| 58 #include "chrome/installer/util/chrome_frame_distribution.h" | 58 #include "chrome/installer/util/chrome_frame_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_metrics.h" | 61 #include "chrome_frame/crash_reporting/crash_metrics.h" |
| 62 #include "chrome_frame/utils.h" | 62 #include "chrome_frame/utils.h" |
| 63 #include "net/base/upload_data.h" | 63 #include "net/base/upload_data.h" |
| 64 #include "chrome_frame/urlmon_bind_status_callback.h" | 64 #include "chrome_frame/urlmon_bind_status_callback.h" |
| 65 | 65 |
| 66 using base::Time; | 66 using base::Time; |
| 67 using base::TimeDelta; | 67 using base::TimeDelta; |
| 68 | 68 |
| 69 static const char kMetricsType[] = | 69 static const char kMetricsType[] = |
| 70 "Content-Type: application/vnd.mozilla.metrics.bz2\r\n"; | 70 "Content-Type: application/vnd.mozilla.metrics.bz2\r\n"; |
| 71 | 71 |
| (...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 458 if (!version_info->is_official_build()) | 458 if (!version_info->is_official_build()) |
| 459 version.append("-devel"); | 459 version.append("-devel"); |
| 460 return version; | 460 return version; |
| 461 } else { | 461 } else { |
| 462 NOTREACHED() << "Unable to retrieve version string."; | 462 NOTREACHED() << "Unable to retrieve version string."; |
| 463 } | 463 } |
| 464 | 464 |
| 465 return std::string(); | 465 return std::string(); |
| 466 } | 466 } |
| 467 | 467 |
| OLD | NEW |