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 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 info.extension_id = id_; | 321 info.extension_id = id_; |
322 pending_modules_.push_back(info); | 322 pending_modules_.push_back(info); |
323 | 323 |
324 total_modules_ = pending_modules_.size(); | 324 total_modules_ = pending_modules_.size(); |
325 | 325 |
326 std::set<std::string> ids; | 326 std::set<std::string> ids; |
327 std::list<SharedModuleInfo::ImportInfo>::const_iterator i; | 327 std::list<SharedModuleInfo::ImportInfo>::const_iterator i; |
328 for (i = pending_modules_.begin(); i != pending_modules_.end(); ++i) { | 328 for (i = pending_modules_.begin(); i != pending_modules_.end(); ++i) { |
329 ids.insert(i->extension_id); | 329 ids.insert(i->extension_id); |
330 } | 330 } |
331 ExtensionSystem::Get(profile_)->install_verifier()->AddProvisional(ids); | 331 InstallVerifier::Get(profile_)->AddProvisional(ids); |
332 | 332 |
333 std::string name; | 333 std::string name; |
334 if (!approval_->manifest->value()->GetString(manifest_keys::kName, &name)) { | 334 if (!approval_->manifest->value()->GetString(manifest_keys::kName, &name)) { |
335 NOTREACHED(); | 335 NOTREACHED(); |
336 } | 336 } |
337 extensions::InstallTracker* tracker = | 337 extensions::InstallTracker* tracker = |
338 extensions::InstallTrackerFactory::GetForBrowserContext(profile_); | 338 extensions::InstallTrackerFactory::GetForBrowserContext(profile_); |
339 extensions::InstallObserver::ExtensionInstallParams params( | 339 extensions::InstallObserver::ExtensionInstallParams params( |
340 id_, | 340 id_, |
341 name, | 341 name, |
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
766 1, | 766 1, |
767 kMaxSizeKb, | 767 kMaxSizeKb, |
768 kNumBuckets); | 768 kNumBuckets); |
769 } | 769 } |
770 UMA_HISTOGRAM_BOOLEAN( | 770 UMA_HISTOGRAM_BOOLEAN( |
771 "Extensions.WebstoreDownload.InterruptTotalSizeUnknown", | 771 "Extensions.WebstoreDownload.InterruptTotalSizeUnknown", |
772 total_bytes <= 0); | 772 total_bytes <= 0); |
773 } | 773 } |
774 | 774 |
775 } // namespace extensions | 775 } // namespace extensions |
OLD | NEW |