| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "blimp/engine/testing/app/test_blimp_content_main_delegate.h" |
| 6 |
| 7 #include "base/memory/ptr_util.h" |
| 8 #include "blimp/engine/testing/app/test_blimp_content_browser_client.h" |
| 9 |
| 10 namespace blimp { |
| 11 namespace engine { |
| 12 |
| 13 TestBlimpContentMainDelegate::TestBlimpContentMainDelegate() {} |
| 14 |
| 15 content::ContentBrowserClient* |
| 16 TestBlimpContentMainDelegate::CreateContentBrowserClient() { |
| 17 std::unique_ptr<BlimpContentBrowserClient> browser_client_for_test = |
| 18 base::MakeUnique<TestBlimpContentBrowserClient>(); |
| 19 content::ContentBrowserClient* client_ptr = browser_client_for_test.get(); |
| 20 SetContentBrowserClientForTesting(std::move(browser_client_for_test)); |
| 21 return client_ptr; |
| 22 } |
| 23 |
| 24 } // namespace engine |
| 25 } // namespace blimp |
| OLD | NEW |