OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "chrome/renderer/chrome_render_frame_observer.h" | 5 #include "chrome/renderer/chrome_render_frame_observer.h" |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 "tampering. Get a valid SSL certificate before" | 191 "tampering. Get a valid SSL certificate before" |
192 " releasing your website to the public."))); | 192 " releasing your website to the public."))); |
193 } | 193 } |
194 } | 194 } |
195 } | 195 } |
196 | 196 |
197 void ChromeRenderFrameObserver::OnAppBannerPromptRequest( | 197 void ChromeRenderFrameObserver::OnAppBannerPromptRequest( |
198 int request_id, const std::string& platform) { | 198 int request_id, const std::string& platform) { |
199 blink::WebAppBannerPromptReply reply = blink::WebAppBannerPromptReply::None; | 199 blink::WebAppBannerPromptReply reply = blink::WebAppBannerPromptReply::None; |
200 render_frame()->GetWebFrame()->willShowInstallBannerPrompt( | 200 render_frame()->GetWebFrame()->willShowInstallBannerPrompt( |
201 base::UTF8ToUTF16(platform), &reply); | 201 blink::WebString(base::UTF8ToUTF16(platform)), &reply); |
202 | 202 |
203 Send(new ChromeViewHostMsg_AppBannerPromptReply( | 203 Send(new ChromeViewHostMsg_AppBannerPromptReply( |
204 routing_id(), request_id, reply)); | 204 routing_id(), request_id, reply)); |
205 } | 205 } |
OLD | NEW |