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 #include "chrome/browser/extensions/extension_updater.h" | 5 #include "chrome/browser/extensions/extension_updater.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 #include "chrome/common/chrome_switches.h" | 28 #include "chrome/common/chrome_switches.h" |
29 #include "chrome/common/chrome_version_info.h" | 29 #include "chrome/common/chrome_version_info.h" |
30 #include "chrome/common/extensions/extension.h" | 30 #include "chrome/common/extensions/extension.h" |
31 #include "chrome/common/extensions/extension_constants.h" | 31 #include "chrome/common/extensions/extension_constants.h" |
32 #include "chrome/common/pref_names.h" | 32 #include "chrome/common/pref_names.h" |
33 #include "googleurl/src/gurl.h" | 33 #include "googleurl/src/gurl.h" |
34 #include "net/base/escape.h" | 34 #include "net/base/escape.h" |
35 #include "net/base/load_flags.h" | 35 #include "net/base/load_flags.h" |
36 #include "net/url_request/url_request_status.h" | 36 #include "net/url_request/url_request_status.h" |
37 | 37 |
38 #if defined(OS_WIN) | 38 #if defined(OS_MACOSX) |
39 #include "base/registry.h" | |
40 #elif defined(OS_MACOSX) | |
41 #include "base/sys_string_conversions.h" | 39 #include "base/sys_string_conversions.h" |
42 #endif | 40 #endif |
43 | 41 |
44 using base::RandDouble; | 42 using base::RandDouble; |
45 using base::RandInt; | 43 using base::RandInt; |
46 using base::Time; | 44 using base::Time; |
47 using base::TimeDelta; | 45 using base::TimeDelta; |
48 using prefs::kExtensionBlacklistUpdateVersion; | 46 using prefs::kExtensionBlacklistUpdateVersion; |
49 using prefs::kLastExtensionsUpdateCheck; | 47 using prefs::kLastExtensionsUpdateCheck; |
50 using prefs::kNextExtensionsUpdateCheck; | 48 using prefs::kNextExtensionsUpdateCheck; |
(...skipping 786 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
837 extension_fetcher_.reset( | 835 extension_fetcher_.reset( |
838 URLFetcher::Create(kExtensionFetcherId, url, URLFetcher::GET, this)); | 836 URLFetcher::Create(kExtensionFetcherId, url, URLFetcher::GET, this)); |
839 extension_fetcher_->set_request_context( | 837 extension_fetcher_->set_request_context( |
840 Profile::GetDefaultRequestContext()); | 838 Profile::GetDefaultRequestContext()); |
841 extension_fetcher_->set_load_flags(net::LOAD_DO_NOT_SEND_COOKIES | | 839 extension_fetcher_->set_load_flags(net::LOAD_DO_NOT_SEND_COOKIES | |
842 net::LOAD_DO_NOT_SAVE_COOKIES); | 840 net::LOAD_DO_NOT_SAVE_COOKIES); |
843 extension_fetcher_->Start(); | 841 extension_fetcher_->Start(); |
844 current_extension_fetch_ = ExtensionFetch(id, url, hash, version); | 842 current_extension_fetch_ = ExtensionFetch(id, url, hash, version); |
845 } | 843 } |
846 } | 844 } |
OLD | NEW |