| 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" |
| 11 #include "base/file_util.h" | 11 #include "base/file_util.h" |
| 12 #include "base/histogram.h" | 12 #include "base/histogram.h" |
| 13 #include "base/rand_util.h" | 13 #include "base/rand_util.h" |
| 14 #include "base/sha2.h" | 14 #include "base/sha2.h" |
| 15 #include "base/stl_util-inl.h" | 15 #include "base/stl_util-inl.h" |
| 16 #include "base/string_number_conversions.h" | 16 #include "base/string_number_conversions.h" |
| 17 #include "base/string_split.h" |
| 17 #include "base/string_util.h" | 18 #include "base/string_util.h" |
| 18 #include "base/time.h" | 19 #include "base/time.h" |
| 19 #include "base/thread.h" | 20 #include "base/thread.h" |
| 20 #include "base/version.h" | 21 #include "base/version.h" |
| 21 #include "chrome/browser/browser_process.h" | 22 #include "chrome/browser/browser_process.h" |
| 22 #include "chrome/browser/extensions/extension_error_reporter.h" | 23 #include "chrome/browser/extensions/extension_error_reporter.h" |
| 23 #include "chrome/browser/extensions/extensions_service.h" | 24 #include "chrome/browser/extensions/extensions_service.h" |
| 24 #include "chrome/browser/prefs/pref_service.h" | 25 #include "chrome/browser/prefs/pref_service.h" |
| 25 #include "chrome/browser/profile.h" | 26 #include "chrome/browser/profile.h" |
| 26 #include "chrome/browser/utility_process_host.h" | 27 #include "chrome/browser/utility_process_host.h" |
| (...skipping 824 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 851 extension_fetcher_.reset( | 852 extension_fetcher_.reset( |
| 852 URLFetcher::Create(kExtensionFetcherId, url, URLFetcher::GET, this)); | 853 URLFetcher::Create(kExtensionFetcherId, url, URLFetcher::GET, this)); |
| 853 extension_fetcher_->set_request_context( | 854 extension_fetcher_->set_request_context( |
| 854 Profile::GetDefaultRequestContext()); | 855 Profile::GetDefaultRequestContext()); |
| 855 extension_fetcher_->set_load_flags(net::LOAD_DO_NOT_SEND_COOKIES | | 856 extension_fetcher_->set_load_flags(net::LOAD_DO_NOT_SEND_COOKIES | |
| 856 net::LOAD_DO_NOT_SAVE_COOKIES); | 857 net::LOAD_DO_NOT_SAVE_COOKIES); |
| 857 extension_fetcher_->Start(); | 858 extension_fetcher_->Start(); |
| 858 current_extension_fetch_ = ExtensionFetch(id, url, hash, version); | 859 current_extension_fetch_ = ExtensionFetch(id, url, hash, version); |
| 859 } | 860 } |
| 860 } | 861 } |
| OLD | NEW |