| Index: blimp/engine/testing/app/blimp_content_browser_client_for_test.cc
|
| diff --git a/blimp/engine/testing/app/blimp_content_browser_client_for_test.cc b/blimp/engine/testing/app/blimp_content_browser_client_for_test.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..9fd5a79ee40294e1be6d42484b4f3e8a0620e9f0
|
| --- /dev/null
|
| +++ b/blimp/engine/testing/app/blimp_content_browser_client_for_test.cc
|
| @@ -0,0 +1,24 @@
|
| +// 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/blimp_browser_testing_main_parts.h"
|
| +#include "blimp/engine/testing/app/blimp_content_browser_client_for_test.h"
|
| +
|
| +namespace blimp {
|
| +namespace engine {
|
| +
|
| +BlimpContentBrowserClientForTest::BlimpContentBrowserClientForTest() {}
|
| +
|
| +content::BrowserMainParts*
|
| +BlimpContentBrowserClientForTest::CreateBrowserMainParts(
|
| + const content::MainFunctionParams& parameters) {
|
| + blimp_browser_main_parts_ = new BlimpBrowserTestingMainParts(parameters);
|
| + BlimpContentBrowserClient::SetBrowserMainPartsForTesting(
|
| + blimp_browser_main_parts_);
|
| + // BrowserMainLoop takes ownership of the returned BrowserMainParts.
|
| + return blimp_browser_main_parts_;
|
| +}
|
| +
|
| +} // namespace engine
|
| +} // namespace blimp
|
|
|