Index: chrome/browser/extensions/extension_host.cc |
diff --git a/chrome/browser/extensions/extension_host.cc b/chrome/browser/extensions/extension_host.cc |
index a685cd411c610095496a947669c997371f1d0b87..ba25ceb9be269324423ce579f3cc26abdcefa462 100644 |
--- a/chrome/browser/extensions/extension_host.cc |
+++ b/chrome/browser/extensions/extension_host.cc |
@@ -177,10 +177,6 @@ void ExtensionHost::CreateView(Browser* browser) { |
#endif |
} |
-void ExtensionHost::CreateViewWithoutBrowser() { |
- CreateView(NULL); |
-} |
- |
WebContents* ExtensionHost::GetAssociatedWebContents() const { |
return associated_web_contents_; |
} |
@@ -194,7 +190,6 @@ void ExtensionHost::SetAssociatedWebContents( |
} |
} |
- |
content::RenderProcessHost* ExtensionHost::render_process_host() const { |
return render_view_host()->GetProcess(); |
} |
@@ -293,8 +288,8 @@ void ExtensionHost::Observe(int type, |
void ExtensionHost::ResizeDueToAutoResize(WebContents* source, |
const gfx::Size& new_size) { |
- if (view_.get()) |
- view_->ResizeDueToAutoResize(new_size); |
+ if (view()) |
+ view()->ResizeDueToAutoResize(new_size); |
} |
void ExtensionHost::RenderViewGone(base::TerminationStatus status) { |
@@ -338,11 +333,10 @@ void ExtensionHost::DidStopLoading() { |
if (extension_host_type_ == chrome::VIEW_TYPE_EXTENSION_POPUP || |
extension_host_type_ == chrome::VIEW_TYPE_EXTENSION_DIALOG || |
extension_host_type_ == chrome::VIEW_TYPE_EXTENSION_INFOBAR || |
- extension_host_type_ == chrome::VIEW_TYPE_APP_SHELL || |
extension_host_type_ == chrome::VIEW_TYPE_PANEL) { |
#if defined(TOOLKIT_VIEWS) || defined(OS_MACOSX) |
- if (view_.get()) |
- view_->DidStopLoading(); |
+ if (view()) |
+ view()->DidStopLoading(); |
#endif |
} |
if (notify) { |
@@ -358,8 +352,6 @@ void ExtensionHost::DidStopLoading() { |
} else if (extension_host_type_ == chrome::VIEW_TYPE_EXTENSION_INFOBAR) { |
UMA_HISTOGRAM_TIMES("Extensions.InfobarLoadTime", |
since_created_.Elapsed()); |
- } else if (extension_host_type_ == chrome::VIEW_TYPE_APP_SHELL) { |
- UMA_HISTOGRAM_TIMES("Extensions.ShellLoadTime", since_created_.Elapsed()); |
} else if (extension_host_type_ == chrome::VIEW_TYPE_PANEL) { |
UMA_HISTOGRAM_TIMES("Extensions.PanelLoadTime", since_created_.Elapsed()); |
} |
@@ -406,16 +398,11 @@ void ExtensionHost::CloseContents(WebContents* contents) { |
extension_host_type_ == chrome::VIEW_TYPE_EXTENSION_DIALOG || |
extension_host_type_ == chrome::VIEW_TYPE_EXTENSION_BACKGROUND_PAGE || |
extension_host_type_ == chrome::VIEW_TYPE_EXTENSION_INFOBAR || |
- extension_host_type_ == chrome::VIEW_TYPE_APP_SHELL || |
extension_host_type_ == chrome::VIEW_TYPE_PANEL) { |
Close(); |
} |
} |
-bool ExtensionHost::ShouldSuppressDialogs() { |
- return extension_->is_platform_app(); |
-} |
- |
void ExtensionHost::WillRunJavaScriptDialog() { |
ExtensionProcessManager* pm = |
ExtensionSystem::Get(profile_)->process_manager(); |
@@ -489,8 +476,8 @@ void ExtensionHost::OnRequest(const ExtensionHostMsg_Request_Params& params) { |
void ExtensionHost::RenderViewCreated(RenderViewHost* render_view_host) { |
render_view_host_ = render_view_host; |
- if (view_.get()) |
- view_->RenderViewCreated(); |
+ if (view()) |
+ view()->RenderViewCreated(); |
// If the host is bound to a browser, then extract its window id. |
// Extensions hosted in ExternalTabContainer objects may not have |