| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "components/test_runner/app_banner_client.h" | 5 #include "components/test_runner/app_banner_client.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/memory/scoped_ptr.h" | |
| 9 #include "third_party/WebKit/public/platform/modules/app_banner/WebAppBannerProm
ptResult.h" | 8 #include "third_party/WebKit/public/platform/modules/app_banner/WebAppBannerProm
ptResult.h" |
| 10 | 9 |
| 11 namespace test_runner { | 10 namespace test_runner { |
| 12 | 11 |
| 13 AppBannerClient::AppBannerClient() { | 12 AppBannerClient::AppBannerClient() { |
| 14 } | 13 } |
| 15 | 14 |
| 16 AppBannerClient::~AppBannerClient() { | 15 AppBannerClient::~AppBannerClient() { |
| 17 } | 16 } |
| 18 | 17 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 31 // If no platform has been set, treat it as dismissal. | 30 // If no platform has been set, treat it as dismissal. |
| 32 callbacks->onSuccess(blink::WebAppBannerPromptResult( | 31 callbacks->onSuccess(blink::WebAppBannerPromptResult( |
| 33 blink::WebString::fromUTF8(resolve_platform), | 32 blink::WebString::fromUTF8(resolve_platform), |
| 34 resolve_platform.empty() | 33 resolve_platform.empty() |
| 35 ? blink::WebAppBannerPromptResult::Outcome::Dismissed | 34 ? blink::WebAppBannerPromptResult::Outcome::Dismissed |
| 36 : blink::WebAppBannerPromptResult::Outcome::Accepted)); | 35 : blink::WebAppBannerPromptResult::Outcome::Accepted)); |
| 37 callbacks_map_.Remove(request_id); | 36 callbacks_map_.Remove(request_id); |
| 38 } | 37 } |
| 39 | 38 |
| 40 } // namespace test_runner | 39 } // namespace test_runner |
| OLD | NEW |