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