| Index: blimp/engine/testing/app/test_blimp_content_main_delegate.cc
|
| diff --git a/blimp/engine/testing/app/test_blimp_content_main_delegate.cc b/blimp/engine/testing/app/test_blimp_content_main_delegate.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..12b41e6d181580a33f6696a635d8e9ebf184619f
|
| --- /dev/null
|
| +++ b/blimp/engine/testing/app/test_blimp_content_main_delegate.cc
|
| @@ -0,0 +1,25 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "blimp/engine/testing/app/test_blimp_content_main_delegate.h"
|
| +
|
| +#include "base/memory/ptr_util.h"
|
| +#include "blimp/engine/testing/app/test_blimp_content_browser_client.h"
|
| +
|
| +namespace blimp {
|
| +namespace engine {
|
| +
|
| +TestBlimpContentMainDelegate::TestBlimpContentMainDelegate() {}
|
| +
|
| +content::ContentBrowserClient*
|
| +TestBlimpContentMainDelegate::CreateContentBrowserClient() {
|
| + std::unique_ptr<BlimpContentBrowserClient> browser_client_for_test =
|
| + base::MakeUnique<TestBlimpContentBrowserClient>();
|
| + content::ContentBrowserClient* client_ptr = browser_client_for_test.get();
|
| + SetContentBrowserClientForTesting(std::move(browser_client_for_test));
|
| + return client_ptr;
|
| +}
|
| +
|
| +} // namespace engine
|
| +} // namespace blimp
|
|
|