Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(287)

Side by Side Diff: chrome/browser/extensions/webstore_installer.cc

Issue 1127133006: Extract InstallVerifier from ExtensionSystem. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/extensions/test_extension_system.cc ('k') | chrome/browser/metrics/extensions_metrics_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698