| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 //------------------------------------------------------------------------------ | 7 //------------------------------------------------------------------------------ |
| 8 // Description of the life cycle of a instance of MetricsService. | 8 // Description of the life cycle of a instance of MetricsService. |
| 9 // | 9 // |
| 10 // OVERVIEW | 10 // OVERVIEW |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 #include "chrome/browser/plugin_service.h" | 174 #include "chrome/browser/plugin_service.h" |
| 175 #include "chrome/browser/profile.h" | 175 #include "chrome/browser/profile.h" |
| 176 #include "chrome/browser/renderer_host/render_process_host.h" | 176 #include "chrome/browser/renderer_host/render_process_host.h" |
| 177 #include "chrome/browser/search_engines/template_url.h" | 177 #include "chrome/browser/search_engines/template_url.h" |
| 178 #include "chrome/browser/search_engines/template_url_model.h" | 178 #include "chrome/browser/search_engines/template_url_model.h" |
| 179 #include "chrome/common/chrome_paths.h" | 179 #include "chrome/common/chrome_paths.h" |
| 180 #include "chrome/common/libxml_utils.h" | 180 #include "chrome/common/libxml_utils.h" |
| 181 #include "chrome/common/notification_service.h" | 181 #include "chrome/common/notification_service.h" |
| 182 #include "chrome/common/pref_names.h" | 182 #include "chrome/common/pref_names.h" |
| 183 #include "chrome/common/pref_service.h" | 183 #include "chrome/common/pref_service.h" |
| 184 #include "chrome/common/render_messages.h" |
| 184 #include "chrome/installer/util/google_update_settings.h" | 185 #include "chrome/installer/util/google_update_settings.h" |
| 185 #include "googleurl/src/gurl.h" | 186 #include "googleurl/src/gurl.h" |
| 186 #include "net/base/load_flags.h" | 187 #include "net/base/load_flags.h" |
| 187 #include "third_party/bzip2/bzlib.h" | 188 #include "third_party/bzip2/bzlib.h" |
| 188 | 189 |
| 189 using base::Time; | 190 using base::Time; |
| 190 using base::TimeDelta; | 191 using base::TimeDelta; |
| 191 | 192 |
| 192 // Check to see that we're being called on only one thread. | 193 // Check to see that we're being called on only one thread. |
| 193 static bool IsSingleThreaded(); | 194 static bool IsSingleThreaded(); |
| (...skipping 1573 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1767 L"." + key; | 1768 L"." + key; |
| 1768 prof_prefs->SetInteger(pref_key.c_str(), value); | 1769 prof_prefs->SetInteger(pref_key.c_str(), value); |
| 1769 } | 1770 } |
| 1770 | 1771 |
| 1771 static bool IsSingleThreaded() { | 1772 static bool IsSingleThreaded() { |
| 1772 static int thread_id = 0; | 1773 static int thread_id = 0; |
| 1773 if (!thread_id) | 1774 if (!thread_id) |
| 1774 thread_id = GetCurrentThreadId(); | 1775 thread_id = GetCurrentThreadId(); |
| 1775 return GetCurrentThreadId() == thread_id; | 1776 return GetCurrentThreadId() == thread_id; |
| 1776 } | 1777 } |
| OLD | NEW |