| 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 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 } | 208 } |
| 209 | 209 |
| 210 void BundleInstaller::ParseManifests() { | 210 void BundleInstaller::ParseManifests() { |
| 211 if (items_.empty()) { | 211 if (items_.empty()) { |
| 212 ReportCanceled(false); | 212 ReportCanceled(false); |
| 213 return; | 213 return; |
| 214 } | 214 } |
| 215 | 215 |
| 216 for (ItemMap::iterator i = items_.begin(); i != items_.end(); ++i) { | 216 for (ItemMap::iterator i = items_.begin(); i != items_.end(); ++i) { |
| 217 scoped_refptr<WebstoreInstallHelper> helper = new WebstoreInstallHelper( | 217 scoped_refptr<WebstoreInstallHelper> helper = new WebstoreInstallHelper( |
| 218 this, i->first, i->second.manifest, "", GURL(), NULL); | 218 this, i->first, i->second.manifest, std::string(), GURL(), NULL); |
| 219 helper->Start(); | 219 helper->Start(); |
| 220 } | 220 } |
| 221 } | 221 } |
| 222 | 222 |
| 223 void BundleInstaller::ReportApproved() { | 223 void BundleInstaller::ReportApproved() { |
| 224 if (delegate_) | 224 if (delegate_) |
| 225 delegate_->OnBundleInstallApproved(); | 225 delegate_->OnBundleInstallApproved(); |
| 226 | 226 |
| 227 Release(); // Balanced in PromptForApproval(). | 227 Release(); // Balanced in PromptForApproval(). |
| 228 } | 228 } |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 347 void BundleInstaller::OnBrowserAdded(Browser* browser) {} | 347 void BundleInstaller::OnBrowserAdded(Browser* browser) {} |
| 348 | 348 |
| 349 void BundleInstaller::OnBrowserRemoved(Browser* browser) { | 349 void BundleInstaller::OnBrowserRemoved(Browser* browser) { |
| 350 if (browser_ == browser) | 350 if (browser_ == browser) |
| 351 browser_ = NULL; | 351 browser_ = NULL; |
| 352 } | 352 } |
| 353 | 353 |
| 354 void BundleInstaller::OnBrowserSetLastActive(Browser* browser) {} | 354 void BundleInstaller::OnBrowserSetLastActive(Browser* browser) {} |
| 355 | 355 |
| 356 } // namespace extensions | 356 } // namespace extensions |
| OLD | NEW |