| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ios/public/provider/web/web_controller_provider.h" | 5 #include "ios/public/provider/web/web_controller_provider.h" |
| 6 | 6 |
| 7 namespace ios { | 7 namespace ios { |
| 8 | 8 |
| 9 static WebControllerProviderFactory* g_web_controller_provider_factory; | 9 static WebControllerProviderFactory* g_web_controller_provider_factory; |
| 10 | 10 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 if (completion) | 36 if (completion) |
| 37 completion(nil, nil); | 37 completion(nil, nil); |
| 38 } | 38 } |
| 39 | 39 |
| 40 WebControllerProviderFactory::WebControllerProviderFactory() { | 40 WebControllerProviderFactory::WebControllerProviderFactory() { |
| 41 } | 41 } |
| 42 | 42 |
| 43 WebControllerProviderFactory::~WebControllerProviderFactory() { | 43 WebControllerProviderFactory::~WebControllerProviderFactory() { |
| 44 } | 44 } |
| 45 | 45 |
| 46 scoped_ptr<WebControllerProvider> | 46 std::unique_ptr<WebControllerProvider> |
| 47 WebControllerProviderFactory::CreateWebControllerProvider( | 47 WebControllerProviderFactory::CreateWebControllerProvider( |
| 48 web::BrowserState* browser_state) { | 48 web::BrowserState* browser_state) { |
| 49 return scoped_ptr<WebControllerProvider>( | 49 return std::unique_ptr<WebControllerProvider>( |
| 50 new WebControllerProvider(browser_state)); | 50 new WebControllerProvider(browser_state)); |
| 51 } | 51 } |
| 52 | 52 |
| 53 } // namespace ios | 53 } // namespace ios |
| OLD | NEW |