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

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

Issue 931993002: Make image_decoder a Leaky LazyInstance (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Get rid of IDMap Created 5 years, 9 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/bundle_installer.h" 5 #include "chrome/browser/extensions/bundle_installer.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 } 213 }
214 214
215 void BundleInstaller::ParseManifests() { 215 void BundleInstaller::ParseManifests() {
216 if (items_.empty()) { 216 if (items_.empty()) {
217 ReportCanceled(false); 217 ReportCanceled(false);
218 return; 218 return;
219 } 219 }
220 220
221 for (ItemMap::iterator i = items_.begin(); i != items_.end(); ++i) { 221 for (ItemMap::iterator i = items_.begin(); i != items_.end(); ++i) {
222 scoped_refptr<WebstoreInstallHelper> helper = new WebstoreInstallHelper( 222 scoped_refptr<WebstoreInstallHelper> helper = new WebstoreInstallHelper(
223 this, i->first, i->second.manifest, std::string(), GURL(), NULL); 223 this, i->first, i->second.manifest, GURL(), NULL);
dcheng 2015/03/23 11:52:09 Since we're changing this line anyway, mind updati
Theresa 2015/03/23 17:33:09 Done.
224 helper->Start(); 224 helper->Start();
225 } 225 }
226 } 226 }
227 227
228 void BundleInstaller::ReportApproved() { 228 void BundleInstaller::ReportApproved() {
229 if (delegate_) 229 if (delegate_)
230 delegate_->OnBundleInstallApproved(); 230 delegate_->OnBundleInstallApproved();
231 231
232 Release(); // Balanced in PromptForApproval(). 232 Release(); // Balanced in PromptForApproval().
233 } 233 }
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 void BundleInstaller::OnBrowserAdded(Browser* browser) {} 354 void BundleInstaller::OnBrowserAdded(Browser* browser) {}
355 355
356 void BundleInstaller::OnBrowserRemoved(Browser* browser) { 356 void BundleInstaller::OnBrowserRemoved(Browser* browser) {
357 if (browser_ == browser) 357 if (browser_ == browser)
358 browser_ = NULL; 358 browser_ = NULL;
359 } 359 }
360 360
361 void BundleInstaller::OnBrowserSetLastActive(Browser* browser) {} 361 void BundleInstaller::OnBrowserSetLastActive(Browser* browser) {}
362 362
363 } // namespace extensions 363 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698