| 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 <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 #include <limits> | 9 #include <limits> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 void WebstoreInstaller::Delegate::OnExtensionDownloadProgress( | 238 void WebstoreInstaller::Delegate::OnExtensionDownloadProgress( |
| 239 const std::string& id, | 239 const std::string& id, |
| 240 content::DownloadItem* item) { | 240 content::DownloadItem* item) { |
| 241 } | 241 } |
| 242 | 242 |
| 243 WebstoreInstaller::Approval::Approval() | 243 WebstoreInstaller::Approval::Approval() |
| 244 : profile(NULL), | 244 : profile(NULL), |
| 245 use_app_installed_bubble(false), | 245 use_app_installed_bubble(false), |
| 246 skip_post_install_ui(false), | 246 skip_post_install_ui(false), |
| 247 skip_install_dialog(false), | 247 skip_install_dialog(false), |
| 248 enable_launcher(false), | |
| 249 manifest_check_level(MANIFEST_CHECK_LEVEL_STRICT) { | 248 manifest_check_level(MANIFEST_CHECK_LEVEL_STRICT) { |
| 250 } | 249 } |
| 251 | 250 |
| 252 std::unique_ptr<WebstoreInstaller::Approval> | 251 std::unique_ptr<WebstoreInstaller::Approval> |
| 253 WebstoreInstaller::Approval::CreateWithInstallPrompt(Profile* profile) { | 252 WebstoreInstaller::Approval::CreateWithInstallPrompt(Profile* profile) { |
| 254 std::unique_ptr<Approval> result(new Approval()); | 253 std::unique_ptr<Approval> result(new Approval()); |
| 255 result->profile = profile; | 254 result->profile = profile; |
| 256 return result; | 255 return result; |
| 257 } | 256 } |
| 258 | 257 |
| (...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 794 1, | 793 1, |
| 795 kMaxSizeKb, | 794 kMaxSizeKb, |
| 796 kNumBuckets); | 795 kNumBuckets); |
| 797 } | 796 } |
| 798 UMA_HISTOGRAM_BOOLEAN( | 797 UMA_HISTOGRAM_BOOLEAN( |
| 799 "Extensions.WebstoreDownload.InterruptTotalSizeUnknown", | 798 "Extensions.WebstoreDownload.InterruptTotalSizeUnknown", |
| 800 total_bytes <= 0); | 799 total_bytes <= 0); |
| 801 } | 800 } |
| 802 | 801 |
| 803 } // namespace extensions | 802 } // namespace extensions |
| OLD | NEW |