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

Side by Side Diff: chrome/renderer/chrome_render_frame_observer.cc

Issue 1090863002: Update call to willShowInstallBannerPrompt to remove implicit conversion (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698