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/tab_contents_wrapper.h" | 5 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" |
6 | 6 |
7 #include "base/singleton.h" | 7 #include "base/singleton.h" |
8 #include "chrome/browser/password_manager/password_manager.h" | 8 #include "chrome/browser/password_manager/password_manager.h" |
9 #include "chrome/browser/password_manager_delegate_impl.h" | 9 #include "chrome/browser/password_manager_delegate_impl.h" |
10 #include "chrome/browser/tab_contents/tab_contents.h" | 10 #include "chrome/browser/tab_contents/tab_contents.h" |
11 | 11 |
12 //////////////////////////////////////////////////////////////////////////////// | 12 //////////////////////////////////////////////////////////////////////////////// |
13 // TabContentsWrapper, public: | 13 // TabContentsWrapper, public: |
14 | 14 |
15 TabContentsWrapper::TabContentsWrapper(TabContents* contents) | 15 TabContentsWrapper::TabContentsWrapper(TabContents* contents) |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 return password_manager_.get(); | 54 return password_manager_.get(); |
55 } | 55 } |
56 | 56 |
57 //////////////////////////////////////////////////////////////////////////////// | 57 //////////////////////////////////////////////////////////////////////////////// |
58 // TabContentsWrapper, WebNavigationObserver implementation: | 58 // TabContentsWrapper, WebNavigationObserver implementation: |
59 | 59 |
60 void TabContentsWrapper::NavigateToPendingEntry() { | 60 void TabContentsWrapper::NavigateToPendingEntry() { |
61 GetPasswordManager(); | 61 GetPasswordManager(); |
62 tab_contents()->RemoveNavigationObserver(this); | 62 tab_contents()->RemoveNavigationObserver(this); |
63 } | 63 } |
OLD | NEW |