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 // This code glues the RLZ library DLL with Chrome. It allows Chrome to work | 5 // This code glues the RLZ library DLL with Chrome. It allows Chrome to work |
6 // with or without the DLL being present. If the DLL is not present the | 6 // with or without the DLL being present. If the DLL is not present the |
7 // functions do nothing and just return false. | 7 // functions do nothing and just return false. |
8 | 8 |
9 #include "chrome/browser/rlz/rlz.h" | 9 #include "chrome/browser/rlz/rlz.h" |
10 | 10 |
11 #include <windows.h> | 11 #include <windows.h> |
12 #include <process.h> | 12 #include <process.h> |
13 | 13 |
14 #include <algorithm> | 14 #include <algorithm> |
15 | 15 |
16 #include "base/file_path.h" | 16 #include "base/file_path.h" |
17 #include "base/message_loop.h" | 17 #include "base/message_loop.h" |
18 #include "base/path_service.h" | 18 #include "base/path_service.h" |
19 #include "base/string_util.h" | 19 #include "base/string_util.h" |
20 #include "base/task.h" | 20 #include "base/task.h" |
21 #include "base/thread.h" | 21 #include "base/thread.h" |
| 22 #include "base/utf_string_conversions.h" |
22 #include "chrome/browser/browser_process.h" | 23 #include "chrome/browser/browser_process.h" |
23 #include "chrome/browser/profile.h" | 24 #include "chrome/browser/profile.h" |
24 #include "chrome/browser/profile_manager.h" | 25 #include "chrome/browser/profile_manager.h" |
25 #include "chrome/browser/search_engines/template_url_model.h" | 26 #include "chrome/browser/search_engines/template_url_model.h" |
26 #include "chrome/common/chrome_paths.h" | 27 #include "chrome/common/chrome_paths.h" |
27 #include "chrome/common/env_vars.h" | 28 #include "chrome/common/env_vars.h" |
28 #include "chrome/common/notification_registrar.h" | 29 #include "chrome/common/notification_registrar.h" |
29 #include "chrome/common/notification_service.h" | 30 #include "chrome/common/notification_service.h" |
30 #include "chrome/installer/util/google_update_settings.h" | 31 #include "chrome/installer/util/google_update_settings.h" |
31 | 32 |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 access_values_state = ACCESS_VALUES_FRESH; | 278 access_values_state = ACCESS_VALUES_FRESH; |
278 cached_ommibox_rlz.assign(*rlz); | 279 cached_ommibox_rlz.assign(*rlz); |
279 } | 280 } |
280 return true; | 281 return true; |
281 } | 282 } |
282 | 283 |
283 // static | 284 // static |
284 void RLZTracker::CleanupRlz() { | 285 void RLZTracker::CleanupRlz() { |
285 OmniBoxUsageObserver::DeleteInstance(); | 286 OmniBoxUsageObserver::DeleteInstance(); |
286 } | 287 } |
OLD | NEW |