| 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 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 325 items_[id].state = Item::STATE_FAILED; | 325 items_[id].state = Item::STATE_FAILED; |
| 326 | 326 |
| 327 ExtensionList::iterator i = std::find_if( | 327 ExtensionList::iterator i = std::find_if( |
| 328 dummy_extensions_.begin(), dummy_extensions_.end(), MatchIdFunctor(id)); | 328 dummy_extensions_.begin(), dummy_extensions_.end(), MatchIdFunctor(id)); |
| 329 CHECK(dummy_extensions_.end() != i); | 329 CHECK(dummy_extensions_.end() != i); |
| 330 dummy_extensions_.erase(i); | 330 dummy_extensions_.erase(i); |
| 331 | 331 |
| 332 ShowInstalledBubbleIfDone(); | 332 ShowInstalledBubbleIfDone(); |
| 333 } | 333 } |
| 334 | 334 |
| 335 void BundleInstaller::OnBrowserAdded(const Browser* browser) {} | 335 void BundleInstaller::OnBrowserAdded(Browser* browser) {} |
| 336 | 336 |
| 337 void BundleInstaller::OnBrowserRemoved(const Browser* browser) { | 337 void BundleInstaller::OnBrowserRemoved(Browser* browser) { |
| 338 if (browser_ == browser) | 338 if (browser_ == browser) |
| 339 browser_ = NULL; | 339 browser_ = NULL; |
| 340 } | 340 } |
| 341 | 341 |
| 342 void BundleInstaller::OnBrowserSetLastActive(const Browser* browser) {} | 342 void BundleInstaller::OnBrowserSetLastActive(Browser* browser) {} |
| 343 | 343 |
| 344 } // namespace extensions | 344 } // namespace extensions |
| OLD | NEW |