| Index: chrome/browser/extensions/extension_view_host.cc
|
| diff --git a/chrome/browser/extensions/extension_view_host.cc b/chrome/browser/extensions/extension_view_host.cc
|
| index c60c467a56c4a2cc3099363f971faf070ede7074..b78d5facbf21940c152b4b417a90f573a67633c6 100644
|
| --- a/chrome/browser/extensions/extension_view_host.cc
|
| +++ b/chrome/browser/extensions/extension_view_host.cc
|
| @@ -6,7 +6,6 @@
|
|
|
| #include "base/strings/string_piece.h"
|
| #include "chrome/browser/chrome_notification_types.h"
|
| -#include "chrome/browser/extensions/extension_service.h"
|
| #include "chrome/browser/extensions/extension_system.h"
|
| #include "chrome/browser/extensions/window_controller.h"
|
| #include "chrome/browser/file_select_helper.h"
|
| @@ -19,6 +18,7 @@
|
| #include "content/public/browser/render_view_host.h"
|
| #include "content/public/browser/web_contents.h"
|
| #include "content/public/browser/web_contents_view.h"
|
| +#include "extensions/browser/runtime_data.h"
|
| #include "grit/browser_resources.h"
|
| #include "ui/base/resource/resource_bundle.h"
|
| #include "ui/events/keycodes/keyboard_codes.h"
|
| @@ -140,7 +140,7 @@ void ExtensionViewHost::OnDocumentAvailable() {
|
|
|
| void ExtensionViewHost::LoadInitialURL() {
|
| if (!ExtensionSystem::GetForBrowserContext(browser_context())->
|
| - extension_service()->IsBackgroundPageReady(extension())) {
|
| + runtime_data()->IsBackgroundPageReady(extension())) {
|
| // Make sure the background page loads before any others.
|
| registrar()->Add(this,
|
| chrome::NOTIFICATION_EXTENSION_BACKGROUND_PAGE_READY,
|
| @@ -321,7 +321,7 @@ void ExtensionViewHost::Observe(int type,
|
| const content::NotificationDetails& details) {
|
| if (type == chrome::NOTIFICATION_EXTENSION_BACKGROUND_PAGE_READY) {
|
| DCHECK(ExtensionSystem::GetForBrowserContext(browser_context())->
|
| - extension_service()->IsBackgroundPageReady(extension()));
|
| + runtime_data()->IsBackgroundPageReady(extension()));
|
| LoadInitialURL();
|
| return;
|
| }
|
|
|