| Index: shell/dynamic_application_loader.cc
|
| diff --git a/shell/dynamic_application_loader.cc b/shell/dynamic_application_loader.cc
|
| index 72ca835faa3b98339568ce548c5cc8a6ea407c8a..e350b409dea92aff9168d654b726b6be3be3f4da 100644
|
| --- a/shell/dynamic_application_loader.cc
|
| +++ b/shell/dynamic_application_loader.cc
|
| @@ -31,7 +31,7 @@ namespace shell {
|
|
|
| namespace {
|
|
|
| -static const char kMojoMagic[] = "#!mojo:";
|
| +static const char kMojoMagic[] = "#!mojo ";
|
| static const size_t kMaxShebangLength = 2048;
|
|
|
| void IgnoreResult(bool result) {
|
| @@ -81,7 +81,7 @@ class DynamicApplicationLoader::Loader {
|
| virtual bool PeekFirstLine(std::string* line) = 0;
|
|
|
| void Load() {
|
| - // If the response begins with a #!mojo:<content-handler-url>, use it.
|
| + // If the response begins with a #!mojo <content-handler-url>, use it.
|
| GURL url;
|
| std::string shebang;
|
| if (PeekContentHandler(&shebang, &url)) {
|
| @@ -116,7 +116,7 @@ class DynamicApplicationLoader::Loader {
|
| GURL* mojo_content_handler_url) {
|
| std::string shebang;
|
| if (HasMojoMagic() && PeekFirstLine(&shebang)) {
|
| - GURL url(shebang.substr(2, std::string::npos));
|
| + GURL url(shebang.substr(arraysize(kMojoMagic) - 1, std::string::npos));
|
| if (url.is_valid()) {
|
| *mojo_shebang = shebang;
|
| *mojo_content_handler_url = url;
|
|
|