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/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 Loading... |
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(), nullptr); |
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 Loading... |
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 |
OLD | NEW |