| Index: chrome/service/cloud_print/cloud_print_url_fetcher_unittest.cc
|
| diff --git a/chrome/service/cloud_print/cloud_print_url_fetcher_unittest.cc b/chrome/service/cloud_print/cloud_print_url_fetcher_unittest.cc
|
| index 63589dfa282c5e75b9db97f2db143631d109e06c..e0279a7067f7060abe08ce77f5d566e473b9eebd 100644
|
| --- a/chrome/service/cloud_print/cloud_print_url_fetcher_unittest.cc
|
| +++ b/chrome/service/cloud_print/cloud_print_url_fetcher_unittest.cc
|
| @@ -39,8 +39,8 @@ class TrackingTestURLRequestContextGetter
|
| }
|
|
|
| virtual TestURLRequestContext* GetURLRequestContext() OVERRIDE {
|
| - if (!context_) {
|
| - context_ = new TestURLRequestContext(true);
|
| + if (!context_.get()) {
|
| + context_.reset(new TestURLRequestContext(true));
|
| context_->set_throttler_manager(throttler_manager_);
|
| context_->Init();
|
| }
|
| @@ -55,7 +55,7 @@ class TrackingTestURLRequestContextGetter
|
| private:
|
| // Not owned here.
|
| net::URLRequestThrottlerManager* throttler_manager_;
|
| - scoped_refptr<TestURLRequestContext> context_;
|
| + scoped_ptr<TestURLRequestContext> context_;
|
| };
|
|
|
| class TestCloudPrintURLFetcher : public CloudPrintURLFetcher {
|
|
|