| Index: chrome/browser/extensions/extension_protocols.cc
|
| diff --git a/chrome/browser/extensions/extension_protocols.cc b/chrome/browser/extensions/extension_protocols.cc
|
| index be7bab6f71eb518c4a3f9f70fb75c7e56fda0f09..d258140768b9f646121faa0e9b34010d7e1e737a 100644
|
| --- a/chrome/browser/extensions/extension_protocols.cc
|
| +++ b/chrome/browser/extensions/extension_protocols.cc
|
| @@ -21,6 +21,7 @@
|
| #include "chrome/browser/extensions/image_loader.h"
|
| #include "chrome/browser/net/chrome_url_request_context.h"
|
| #include "chrome/common/chrome_paths.h"
|
| +#include "chrome/common/extensions/background_info.h"
|
| #include "chrome/common/extensions/extension.h"
|
| #include "chrome/common/extensions/extension_file_util.h"
|
| #include "chrome/common/extensions/extension_resource.h"
|
| @@ -168,9 +169,11 @@ class GeneratedBackgroundPageJob : public net::URLRequestSimpleJob {
|
| *charset = "utf-8";
|
|
|
| *data = "<!DOCTYPE html>\n<body>\n";
|
| - for (size_t i = 0; i < extension_->background_scripts().size(); ++i) {
|
| + const std::vector<std::string>& background_scripts =
|
| + extensions::BackgroundInfo::GetBackgroundScripts(extension_);
|
| + for (size_t i = 0; i < background_scripts.size(); ++i) {
|
| *data += "<script src=\"";
|
| - *data += extension_->background_scripts()[i];
|
| + *data += background_scripts[i];
|
| *data += "\"></script>\n";
|
| }
|
|
|
|
|