| Index: chrome/browser/extensions/extension_host.cc
|
| diff --git a/chrome/browser/extensions/extension_host.cc b/chrome/browser/extensions/extension_host.cc
|
| index 4763b17812c383973170fe0145d37cd27621ed15..0a6e94d243d86d3294ece99f0734f30199cdf67c 100644
|
| --- a/chrome/browser/extensions/extension_host.cc
|
| +++ b/chrome/browser/extensions/extension_host.cc
|
| @@ -332,7 +332,8 @@ void ExtensionHost::DidStopLoading() {
|
| did_stop_loading_ = true;
|
| 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_EXTENSION_INFOBAR ||
|
| + extension_host_type_ == chrome::VIEW_TYPE_APP_SHELL) {
|
| #if defined(TOOLKIT_VIEWS) || defined(OS_MACOSX)
|
| if (view_.get())
|
| view_->DidStopLoading();
|
| @@ -355,6 +356,8 @@ 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());
|
| }
|
| }
|
| }
|
| @@ -390,7 +393,8 @@ void ExtensionHost::CloseContents(TabContents* contents) {
|
| if (extension_host_type_ == chrome::VIEW_TYPE_EXTENSION_POPUP ||
|
| 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_EXTENSION_INFOBAR ||
|
| + extension_host_type_ == chrome::VIEW_TYPE_APP_SHELL) {
|
| content::NotificationService::current()->Notify(
|
| chrome::NOTIFICATION_EXTENSION_HOST_VIEW_SHOULD_CLOSE,
|
| content::Source<Profile>(profile_),
|
|
|