| Index: extensions/common/manifest_handlers/background_info.cc
|
| diff --git a/extensions/common/manifest_handlers/background_info.cc b/extensions/common/manifest_handlers/background_info.cc
|
| index 230eba13745a4a55ff76581869e8e83cf58f729f..3d575682f504317e7e9b01612af2664e3743da39 100644
|
| --- a/extensions/common/manifest_handlers/background_info.cc
|
| +++ b/extensions/common/manifest_handlers/background_info.cc
|
| @@ -170,8 +170,8 @@ bool BackgroundInfo::LoadBackgroundPage(const Extension* extension,
|
| }
|
|
|
| if (!(background_url_.SchemeIs("https") ||
|
| - (CommandLine::ForCurrentProcess()->HasSwitch(
|
| - switches::kAllowHTTPBackgroundPage) &&
|
| + (base::CommandLine::ForCurrentProcess()->HasSwitch(
|
| + switches::kAllowHTTPBackgroundPage) &&
|
| background_url_.SchemeIs("http")))) {
|
| *error = ASCIIToUTF16(errors::kInvalidBackgroundInHostedApp);
|
| return false;
|
|
|