| Index: components/test_runner/app_banner_client.cc
|
| diff --git a/components/test_runner/app_banner_client.cc b/components/test_runner/app_banner_client.cc
|
| deleted file mode 100644
|
| index 06ff8b3b19a240ba5cf91d79d4bd08bd3a7dd091..0000000000000000000000000000000000000000
|
| --- a/components/test_runner/app_banner_client.cc
|
| +++ /dev/null
|
| @@ -1,39 +0,0 @@
|
| -// Copyright 2015 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/test_runner/app_banner_client.h"
|
| -
|
| -#include "base/logging.h"
|
| -#include "third_party/WebKit/public/platform/modules/app_banner/WebAppBannerPromptResult.h"
|
| -
|
| -namespace test_runner {
|
| -
|
| -AppBannerClient::AppBannerClient() {
|
| -}
|
| -
|
| -AppBannerClient::~AppBannerClient() {
|
| -}
|
| -
|
| -void AppBannerClient::registerBannerCallbacks(
|
| - int requestId,
|
| - blink::WebAppBannerCallbacks* callbacks) {
|
| - callbacks_map_.AddWithID(callbacks, requestId);
|
| -}
|
| -
|
| -void AppBannerClient::ResolvePromise(int request_id,
|
| - const std::string& resolve_platform) {
|
| - blink::WebAppBannerCallbacks* callbacks = callbacks_map_.Lookup(request_id);
|
| - if (!callbacks)
|
| - return;
|
| -
|
| - // If no platform has been set, treat it as dismissal.
|
| - callbacks->onSuccess(blink::WebAppBannerPromptResult(
|
| - blink::WebString::fromUTF8(resolve_platform),
|
| - resolve_platform.empty()
|
| - ? blink::WebAppBannerPromptResult::Outcome::Dismissed
|
| - : blink::WebAppBannerPromptResult::Outcome::Accepted));
|
| - callbacks_map_.Remove(request_id);
|
| -}
|
| -
|
| -} // namespace test_runner
|
|
|