| Index: sky/viewer/content_handler_impl.cc
|
| diff --git a/sky/viewer/content_handler_impl.cc b/sky/viewer/content_handler_impl.cc
|
| index e4ceaec945b4bbcc16bae8aafb6d8e067e542337..6647692543a5074dd58f049050abf4afb34f1c6f 100644
|
| --- a/sky/viewer/content_handler_impl.cc
|
| +++ b/sky/viewer/content_handler_impl.cc
|
| @@ -14,10 +14,12 @@ namespace sky {
|
| class SkyApplication : public mojo::Application {
|
| public:
|
| SkyApplication(mojo::ShellPtr shell,
|
| - mojo::URLResponsePtr response)
|
| + mojo::URLResponsePtr response,
|
| + bool is_testing)
|
| : url_(response->url),
|
| shell_(shell.Pass()),
|
| - initial_response_(response.Pass()) {
|
| + initial_response_(response.Pass()),
|
| + is_testing_(is_testing) {
|
| shell_.set_client(this);
|
| mojo::ServiceProviderPtr service_provider;
|
| shell_->ConnectToApplication("mojo:network_service",
|
| @@ -55,16 +57,19 @@ class SkyApplication : public mojo::Application {
|
| void OnResponseReceived(mojo::URLLoaderPtr loader,
|
| mojo::ServiceProviderPtr provider,
|
| mojo::URLResponsePtr response) {
|
| - new DocumentView(provider.Pass(), response.Pass(), shell_.get());
|
| + new DocumentView(provider.Pass(), response.Pass(), shell_.get(),
|
| + is_testing_);
|
| }
|
|
|
| mojo::String url_;
|
| mojo::ShellPtr shell_;
|
| mojo::NetworkServicePtr network_service_;
|
| mojo::URLResponsePtr initial_response_;
|
| + bool is_testing_;
|
| };
|
|
|
| -ContentHandlerImpl::ContentHandlerImpl() {
|
| +ContentHandlerImpl::ContentHandlerImpl(bool is_testing) {
|
| + is_testing_ = is_testing;
|
| }
|
|
|
| ContentHandlerImpl::~ContentHandlerImpl() {
|
| @@ -72,7 +77,7 @@ ContentHandlerImpl::~ContentHandlerImpl() {
|
|
|
| void ContentHandlerImpl::StartApplication(mojo::ShellPtr shell,
|
| mojo::URLResponsePtr response) {
|
| - new SkyApplication(shell.Pass(), response.Pass());
|
| + new SkyApplication(shell.Pass(), response.Pass(), is_testing_);
|
| }
|
|
|
| } // namespace sky
|
|
|