| OLD | NEW | 
|---|
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/instant/instant_unload_handler.h" | 5 #include "chrome/browser/instant/instant_unload_handler.h" | 
| 6 | 6 | 
| 7 #include "chrome/browser/renderer_host/render_view_host.h" | 7 #include "chrome/browser/renderer_host/render_view_host.h" | 
| 8 #include "chrome/browser/tab_contents/tab_contents.h" | 8 #include "chrome/browser/tab_contents/tab_contents.h" | 
| 9 #include "chrome/browser/tab_contents/tab_contents_delegate.h" | 9 #include "chrome/browser/tab_contents/tab_contents_delegate.h" | 
| 10 #include "chrome/browser/ui/browser.h" | 10 #include "chrome/browser/ui/browser.h" | 
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 126   // Add the tab back in. | 126   // Add the tab back in. | 
| 127   browser::Navigate(¶ms); | 127   browser::Navigate(¶ms); | 
| 128 } | 128 } | 
| 129 | 129 | 
| 130 void InstantUnloadHandler::Destroy(TabContentsDelegateImpl* delegate) { | 130 void InstantUnloadHandler::Destroy(TabContentsDelegateImpl* delegate) { | 
| 131   ScopedVector<TabContentsDelegateImpl>::iterator i = | 131   ScopedVector<TabContentsDelegateImpl>::iterator i = | 
| 132       std::find(delegates_.begin(), delegates_.end(), delegate); | 132       std::find(delegates_.begin(), delegates_.end(), delegate); | 
| 133   DCHECK(i != delegates_.end()); | 133   DCHECK(i != delegates_.end()); | 
| 134   delegates_.erase(i); | 134   delegates_.erase(i); | 
| 135 } | 135 } | 
| OLD | NEW | 
|---|