| Index: components/offline_pages/content/background_loader/background_loader_contents_stub.cc
|
| diff --git a/components/offline_pages/content/background_loader/background_loader_contents_stub.cc b/components/offline_pages/content/background_loader/background_loader_contents_stub.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..52eb8842c3210bfc2bb074ce6a6a8d1f41dbf22e
|
| --- /dev/null
|
| +++ b/components/offline_pages/content/background_loader/background_loader_contents_stub.cc
|
| @@ -0,0 +1,23 @@
|
| +// 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 "components/offline_pages/content/background_loader/background_loader_contents_stub.h"
|
| +
|
| +#include "content/public/test/web_contents_tester.h"
|
| +
|
| +namespace background_loader {
|
| +
|
| +BackgroundLoaderContentsStub::BackgroundLoaderContentsStub(
|
| + content::BrowserContext* browser_context) : BackgroundLoaderContents() {
|
| + BackgroundLoaderContents::web_contents_.reset(
|
| + content::WebContentsTester::CreateTestWebContents(browser_context, NULL);
|
| +}
|
| +
|
| +BackgroundLoaderContentsStub::~BackgroundLoaderContentsStub() {}
|
| +
|
| +void BackgroundLoaderContentsStub::LoadPage(const GURL& url) {
|
| + // does nothing.
|
| +}
|
| +
|
| +} // namespace background_loader
|
|
|