Commit 24b55c5a authored by avi@chromium.org's avatar avi@chromium.org

Quick simple cleanup changes to TabContentsWrapper.

BUG=none
TEST=still works

Review URL: http://codereview.chromium.org/6307006

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71795 0039d316-1c4b-4281-b951-d872f2087c98
parent 4aa61048
...@@ -179,7 +179,6 @@ ...@@ -179,7 +179,6 @@
} }
- (void)insertInTabs:(TabAppleScript*)aTab atIndex:(int)index { - (void)insertInTabs:(TabAppleScript*)aTab atIndex:(int)index {
// This method gets called when a new tab is created so
// This method gets called when a new tab is created so // This method gets called when a new tab is created so
// the container and property are set here. // the container and property are set here.
[aTab setContainer:self [aTab setContainer:self
......
// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
...@@ -38,7 +38,7 @@ PropertyAccessor<TabContentsWrapper*>* TabContentsWrapper::property_accessor() { ...@@ -38,7 +38,7 @@ PropertyAccessor<TabContentsWrapper*>* TabContentsWrapper::property_accessor() {
TabContentsWrapper* TabContentsWrapper::Clone() { TabContentsWrapper* TabContentsWrapper::Clone() {
TabContents* new_contents = tab_contents()->Clone(); TabContents* new_contents = tab_contents()->Clone();
TabContentsWrapper* new_wrapper = new TabContentsWrapper(new_contents); TabContentsWrapper* new_wrapper = new TabContentsWrapper(new_contents);
// Instantiate the passowrd manager if it has been instantiated here. // Instantiate the password manager if it has been instantiated here.
if (password_manager_.get()) if (password_manager_.get())
new_wrapper->GetPasswordManager(); new_wrapper->GetPasswordManager();
return new_wrapper; return new_wrapper;
......
// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
#pragma once #pragma once
#include "base/scoped_ptr.h" #include "base/scoped_ptr.h"
#include "base/compiler_specific.h"
#include "chrome/browser/tab_contents/tab_contents.h" #include "chrome/browser/tab_contents/tab_contents.h"
#include "chrome/browser/tab_contents/web_navigation_observer.h" #include "chrome/browser/tab_contents/web_navigation_observer.h"
...@@ -16,7 +17,7 @@ class PasswordManager; ...@@ -16,7 +17,7 @@ class PasswordManager;
class PasswordManagerDelegate; class PasswordManagerDelegate;
class TabContentsDelegate; class TabContentsDelegate;
// Wraps TabContents and all of its supporting objetcs in order to control // Wraps TabContents and all of its supporting objects in order to control
// their ownership and lifetime, while allowing TabContents to remain generic // their ownership and lifetime, while allowing TabContents to remain generic
// and re-usable in other projects. // and re-usable in other projects.
// TODO(pinkerton): Eventually, this class will become TabContents as far as // TODO(pinkerton): Eventually, this class will become TabContents as far as
...@@ -62,7 +63,7 @@ class TabContentsWrapper : public WebNavigationObserver { ...@@ -62,7 +63,7 @@ class TabContentsWrapper : public WebNavigationObserver {
PasswordManager* GetPasswordManager(); PasswordManager* GetPasswordManager();
// WebNavigationObserver overrides: // WebNavigationObserver overrides:
virtual void NavigateToPendingEntry(); virtual void NavigateToPendingEntry() OVERRIDE;
private: private:
// PasswordManager and its delegate, lazily created. The delegate must // PasswordManager and its delegate, lazily created. The delegate must
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment