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 #include "chrome/browser/google/google_update_win.h" | 5 #include "chrome/browser/google/google_update_win.h" |
6 | 6 |
7 #include <atlbase.h> | 7 #include <atlbase.h> |
8 #include <atlcom.h> | 8 #include <atlcom.h> |
| 9 #include <stdint.h> |
| 10 #include <string.h> |
9 | 11 |
10 #include <vector> | 12 #include <vector> |
11 | 13 |
12 #include "base/bind.h" | 14 #include "base/bind.h" |
13 #include "base/callback.h" | 15 #include "base/callback.h" |
14 #include "base/files/file_path.h" | 16 #include "base/files/file_path.h" |
15 #include "base/location.h" | 17 #include "base/location.h" |
| 18 #include "base/macros.h" |
16 #include "base/metrics/histogram.h" | 19 #include "base/metrics/histogram.h" |
17 #include "base/metrics/sparse_histogram.h" | 20 #include "base/metrics/sparse_histogram.h" |
18 #include "base/path_service.h" | 21 #include "base/path_service.h" |
19 #include "base/sequenced_task_runner_helpers.h" | 22 #include "base/sequenced_task_runner_helpers.h" |
20 #include "base/single_thread_task_runner.h" | 23 #include "base/single_thread_task_runner.h" |
21 #include "base/strings/string_util.h" | 24 #include "base/strings/string_util.h" |
22 #include "base/strings/stringprintf.h" | 25 #include "base/strings/stringprintf.h" |
23 #include "base/strings/utf_string_conversions.h" | 26 #include "base/strings/utf_string_conversions.h" |
24 #include "base/thread_task_runner_handle.h" | 27 #include "base/thread_task_runner_handle.h" |
25 #include "base/time/time.h" | 28 #include "base/time/time.h" |
(...skipping 798 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
824 const GoogleUpdate3ClassFactory& google_update_factory) { | 827 const GoogleUpdate3ClassFactory& google_update_factory) { |
825 if (g_google_update_factory) { | 828 if (g_google_update_factory) { |
826 delete g_google_update_factory; | 829 delete g_google_update_factory; |
827 g_google_update_factory = nullptr; | 830 g_google_update_factory = nullptr; |
828 } | 831 } |
829 if (!google_update_factory.is_null()) { | 832 if (!google_update_factory.is_null()) { |
830 g_google_update_factory = | 833 g_google_update_factory = |
831 new GoogleUpdate3ClassFactory(google_update_factory); | 834 new GoogleUpdate3ClassFactory(google_update_factory); |
832 } | 835 } |
833 } | 836 } |
OLD | NEW |