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

Unified Diff: content/shell/renderer/test_runner/app_banner_client.cc

Issue 1167703002: Move test runner to a component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updates Created 5 years, 7 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
Index: content/shell/renderer/test_runner/app_banner_client.cc
diff --git a/content/shell/renderer/test_runner/app_banner_client.cc b/content/shell/renderer/test_runner/app_banner_client.cc
deleted file mode 100644
index beec18f82340a77df4ec69bd5c60b312d71fa724..0000000000000000000000000000000000000000
--- a/content/shell/renderer/test_runner/app_banner_client.cc
+++ /dev/null
@@ -1,43 +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 "content/shell/renderer/test_runner/app_banner_client.h"
-
-#include "base/logging.h"
-#include "base/memory/scoped_ptr.h"
-#include "third_party/WebKit/public/platform/modules/app_banner/WebAppBannerPromptResult.h"
-
-namespace content {
-
-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);
- DCHECK(callbacks);
-
- scoped_ptr<blink::WebAppBannerPromptResult> result(
- new blink::WebAppBannerPromptResult(
- blink::WebString::fromUTF8(resolve_platform),
- blink::WebAppBannerPromptResult::Outcome::Accepted));
-
- // If no platform has been set, treat it as dismissal.
- if (resolve_platform.empty())
- result->outcome = blink::WebAppBannerPromptResult::Outcome::Dismissed;
-
- callbacks->onSuccess(result.release());
- callbacks_map_.Remove(request_id);
-}
-
-} // namespace content
« no previous file with comments | « content/shell/renderer/test_runner/app_banner_client.h ('k') | content/shell/renderer/test_runner/event_sender.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698