| 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 "content/shell/renderer/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" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "third_party/WebKit/public/platform/modules/app_banner/WebAppBannerProm
ptResult.h" | 9 #include "third_party/WebKit/public/platform/modules/app_banner/WebAppBannerProm
ptResult.h" |
| 10 | 10 |
| 11 namespace content { | 11 namespace content { |
| 12 | 12 |
| 13 AppBannerClient::AppBannerClient() { | 13 AppBannerClient::AppBannerClient() { |
| 14 } | 14 } |
| 15 | 15 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 34 | 34 |
| 35 // If no platform has been set, treat it as dismissal. | 35 // If no platform has been set, treat it as dismissal. |
| 36 if (resolve_platform.empty()) | 36 if (resolve_platform.empty()) |
| 37 result->outcome = blink::WebAppBannerPromptResult::Outcome::Dismissed; | 37 result->outcome = blink::WebAppBannerPromptResult::Outcome::Dismissed; |
| 38 | 38 |
| 39 callbacks->onSuccess(result.release()); | 39 callbacks->onSuccess(result.release()); |
| 40 callbacks_map_.Remove(request_id); | 40 callbacks_map_.Remove(request_id); |
| 41 } | 41 } |
| 42 | 42 |
| 43 } // namespace content | 43 } // namespace content |
| OLD | NEW |