#include "apps/app_load_service.h"
#include "apps/app_restore_service.h"
+#include "apps/app_window.h"
+#include "apps/app_window_registry.h"
#include "apps/saved_files_service.h"
-#include "apps/shell_window.h"
-#include "apps/shell_window_registry.h"
#include "base/auto_reset.h"
#include "base/base64.h"
#include "base/bind.h"
#include "base/command_line.h"
#include "base/location.h"
#include "base/message_loop/message_loop.h"
+#include "base/metrics/histogram.h"
#include "base/prefs/pref_service.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
#include "chrome/browser/extensions/extension_error_reporter.h"
#include "chrome/browser/extensions/extension_host.h"
#include "chrome/browser/extensions/extension_service.h"
-#include "chrome/browser/extensions/extension_system.h"
#include "chrome/browser/extensions/extension_tab_util.h"
#include "chrome/browser/extensions/extension_util.h"
#include "chrome/browser/extensions/extension_warning_set.h"
#include "extensions/browser/blacklist_state.h"
#include "extensions/browser/extension_error.h"
#include "extensions/browser/extension_registry.h"
+#include "extensions/browser/extension_system.h"
#include "extensions/browser/lazy_background_task_queue.h"
#include "extensions/browser/management_policy.h"
#include "extensions/browser/pref_names.h"
"extensions.ExtensionSettings.returnExtensionsData", results);
MaybeRegisterForNotifications();
+ UMA_HISTOGRAM_BOOLEAN("ExtensionSettings.ShouldDoVerificationCheck",
+ should_do_verification_check_);
if (should_do_verification_check_) {
should_do_verification_check_ = false;
- extension_service_->VerifyAllExtensions();
+ extension_service_->VerifyAllExtensions(false); // bootstrap=false.
}
}
process_manager->GetRenderViewHostsForExtension(extension->id()),
&result);
- // Get shell window views
- GetShellWindowPagesForExtensionProfile(extension,
- extension_service_->profile(), &result);
+ // Get app window views
+ GetAppWindowPagesForExtensionProfile(
+ extension, extension_service_->profile(), &result);
// Include a link to start the lazy background page, if applicable.
if (BackgroundInfo::HasLazyBackgroundPage(extension) &&
}
// Repeat for the incognito process, if applicable. Don't try to get
- // shell windows for incognito processes.
+ // app windows for incognito processes.
if (extension_service_->profile()->HasOffTheRecordProfile() &&
IncognitoInfo::IsSplitMode(extension) &&
util::IsIncognitoEnabled(extension->id(),
}
}
-void ExtensionSettingsHandler::GetShellWindowPagesForExtensionProfile(
+void ExtensionSettingsHandler::GetAppWindowPagesForExtensionProfile(
const Extension* extension,
Profile* profile,
std::vector<ExtensionPage>* result) {
- apps::ShellWindowRegistry* registry = apps::ShellWindowRegistry::Get(profile);
+ apps::AppWindowRegistry* registry = apps::AppWindowRegistry::Get(profile);
if (!registry) return;
- const apps::ShellWindowRegistry::ShellWindowList windows =
- registry->GetShellWindowsForApp(extension->id());
+ const apps::AppWindowRegistry::AppWindowList windows =
+ registry->GetAppWindowsForApp(extension->id());
bool has_generated_background_page =
BackgroundInfo::HasGeneratedBackgroundPage(extension);
- for (apps::ShellWindowRegistry::const_iterator it = windows.begin();
- it != windows.end(); ++it) {
+ for (apps::AppWindowRegistry::const_iterator it = windows.begin();
+ it != windows.end();
+ ++it) {
WebContents* web_contents = (*it)->web_contents();
RenderViewHost* host = web_contents->GetRenderViewHost();
content::RenderProcessHost* process = host->GetProcess();