| Index: mojo/fetcher/about_fetcher.cc
|
| diff --git a/mojo/fetcher/about_fetcher.cc b/mojo/fetcher/about_fetcher.cc
|
| index ba3fed8396c2c0fb4f2693852f97b37a25117bd8..c09f09d133d5b47715a73e04b07c948936fcca6a 100644
|
| --- a/mojo/fetcher/about_fetcher.cc
|
| +++ b/mojo/fetcher/about_fetcher.cc
|
| @@ -41,14 +41,15 @@ AboutFetcher::AboutFetcher(const GURL& url,
|
| AboutFetcher::~AboutFetcher() {}
|
|
|
| void AboutFetcher::BuildResponse() {
|
| - if (url_ != GURL(kAboutBlankURL)) {
|
| - PostToRunCallback(false);
|
| - return;
|
| - }
|
| -
|
| response_ = URLResponse::New();
|
| - response_->url = kAboutBlankURL;
|
| - response_->status_code = 200;
|
| + response_->url = url_.spec();
|
| +
|
| + // about: URLs other than about:blank are not supported yet.
|
| + //
|
| + // TODO(yzshen): crbug.com/516494 Eventually we need a general solution to
|
| + // generate error page for network errors/unrecognized app format/etc.
|
| + response_->status_code = (url_ == GURL(kAboutBlankURL)) ? 200 : 404;
|
| +
|
| response_->mime_type = "text/html";
|
| PostToRunCallback(true);
|
| }
|
|
|