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

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

Issue 10388239: Make NetworkProfileBubble not use BrowserList::GetLastActive() as much. Instead pass it a profile a… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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 | Annotate | Revision Log
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 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698