| 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/extensions/webstore_installer.h" | 5 #include "chrome/browser/extensions/webstore_installer.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 #include "extensions/browser/install/crx_install_error.h" | 53 #include "extensions/browser/install/crx_install_error.h" |
| 54 #include "extensions/common/extension.h" | 54 #include "extensions/common/extension.h" |
| 55 #include "extensions/common/extension_urls.h" | 55 #include "extensions/common/extension_urls.h" |
| 56 #include "extensions/common/manifest_constants.h" | 56 #include "extensions/common/manifest_constants.h" |
| 57 #include "extensions/common/manifest_handlers/shared_module_info.h" | 57 #include "extensions/common/manifest_handlers/shared_module_info.h" |
| 58 #include "net/base/escape.h" | 58 #include "net/base/escape.h" |
| 59 #include "ui/base/l10n/l10n_util.h" | 59 #include "ui/base/l10n/l10n_util.h" |
| 60 #include "url/gurl.h" | 60 #include "url/gurl.h" |
| 61 | 61 |
| 62 #if defined(OS_CHROMEOS) | 62 #if defined(OS_CHROMEOS) |
| 63 #include "chrome/browser/chromeos/drive/file_system_util.h" | 63 #include "chrome/browser/chromeos/drive/file_system_core_util.h" |
| 64 #endif | 64 #endif |
| 65 | 65 |
| 66 using content::BrowserContext; | 66 using content::BrowserContext; |
| 67 using content::BrowserThread; | 67 using content::BrowserThread; |
| 68 using content::DownloadItem; | 68 using content::DownloadItem; |
| 69 using content::DownloadManager; | 69 using content::DownloadManager; |
| 70 using content::NavigationController; | 70 using content::NavigationController; |
| 71 using content::DownloadUrlParameters; | 71 using content::DownloadUrlParameters; |
| 72 | 72 |
| 73 namespace { | 73 namespace { |
| (...skipping 708 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 782 1, | 782 1, |
| 783 kMaxSizeKb, | 783 kMaxSizeKb, |
| 784 kNumBuckets); | 784 kNumBuckets); |
| 785 } | 785 } |
| 786 UMA_HISTOGRAM_BOOLEAN( | 786 UMA_HISTOGRAM_BOOLEAN( |
| 787 "Extensions.WebstoreDownload.InterruptTotalSizeUnknown", | 787 "Extensions.WebstoreDownload.InterruptTotalSizeUnknown", |
| 788 total_bytes <= 0); | 788 total_bytes <= 0); |
| 789 } | 789 } |
| 790 | 790 |
| 791 } // namespace extensions | 791 } // namespace extensions |
| OLD | NEW |