Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(865)

Unified Diff: components/test_runner/app_banner_client.cc

Issue 2393513004: Convert app banners to use Mojo. (Closed)
Patch Set: Add TODO Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/test_runner/app_banner_client.h ('k') | components/test_runner/app_banner_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « components/test_runner/app_banner_client.h ('k') | components/test_runner/app_banner_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698