OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/file_version_info.h" | 12 #include "base/file_version_info.h" |
13 #include "base/histogram.h" | |
14 #include "base/rand_util.h" | 13 #include "base/rand_util.h" |
15 #include "base/sha2.h" | 14 #include "base/sha2.h" |
16 #include "base/stl_util-inl.h" | 15 #include "base/stl_util-inl.h" |
17 #include "base/string_util.h" | 16 #include "base/string_util.h" |
18 #include "base/time.h" | 17 #include "base/time.h" |
19 #include "base/thread.h" | 18 #include "base/thread.h" |
20 #include "base/version.h" | 19 #include "base/version.h" |
21 #include "chrome/app/chrome_version_info.h" | 20 #include "chrome/app/chrome_version_info.h" |
22 #include "chrome/browser/browser_process.h" | 21 #include "chrome/browser/browser_process.h" |
23 #include "chrome/browser/extensions/extension_error_reporter.h" | 22 #include "chrome/browser/extensions/extension_error_reporter.h" |
(...skipping 817 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
841 extension_fetcher_.reset( | 840 extension_fetcher_.reset( |
842 URLFetcher::Create(kExtensionFetcherId, url, URLFetcher::GET, this)); | 841 URLFetcher::Create(kExtensionFetcherId, url, URLFetcher::GET, this)); |
843 extension_fetcher_->set_request_context( | 842 extension_fetcher_->set_request_context( |
844 Profile::GetDefaultRequestContext()); | 843 Profile::GetDefaultRequestContext()); |
845 extension_fetcher_->set_load_flags(net::LOAD_DO_NOT_SEND_COOKIES | | 844 extension_fetcher_->set_load_flags(net::LOAD_DO_NOT_SEND_COOKIES | |
846 net::LOAD_DO_NOT_SAVE_COOKIES); | 845 net::LOAD_DO_NOT_SAVE_COOKIES); |
847 extension_fetcher_->Start(); | 846 extension_fetcher_->Start(); |
848 current_extension_fetch_ = ExtensionFetch(id, url, hash, version); | 847 current_extension_fetch_ = ExtensionFetch(id, url, hash, version); |
849 } | 848 } |
850 } | 849 } |
OLD | NEW |