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

Side by Side Diff: chrome/browser/guest_view/web_view/web_view_guest.cc

Issue 368953004: <webview>: Fixed uninitialized variable (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/browser/guest_view/web_view/web_view_guest.h" 5 #include "chrome/browser/guest_view/web_view/web_view_guest.h"
6 6
7 #include "base/message_loop/message_loop.h" 7 #include "base/message_loop/message_loop.h"
8 #include "base/strings/stringprintf.h" 8 #include "base/strings/stringprintf.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "chrome/browser/chrome_notification_types.h" 10 #include "chrome/browser/chrome_notification_types.h"
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 } // namespace 222 } // namespace
223 223
224 WebViewGuest::WebViewGuest(content::BrowserContext* browser_context, 224 WebViewGuest::WebViewGuest(content::BrowserContext* browser_context,
225 int guest_instance_id) 225 int guest_instance_id)
226 : GuestView<WebViewGuest>(browser_context, guest_instance_id), 226 : GuestView<WebViewGuest>(browser_context, guest_instance_id),
227 pending_context_menu_request_id_(0), 227 pending_context_menu_request_id_(0),
228 next_permission_request_id_(0), 228 next_permission_request_id_(0),
229 is_overriding_user_agent_(false), 229 is_overriding_user_agent_(false),
230 main_frame_id_(0), 230 main_frame_id_(0),
231 chromevox_injected_(false), 231 chromevox_injected_(false),
232 current_zoom_factor_(1.0),
232 find_helper_(this), 233 find_helper_(this),
233 javascript_dialog_helper_(this) { 234 javascript_dialog_helper_(this) {
234 } 235 }
235 236
236 // static 237 // static
237 bool WebViewGuest::GetGuestPartitionConfigForSite( 238 bool WebViewGuest::GetGuestPartitionConfigForSite(
238 const GURL& site, 239 const GURL& site,
239 std::string* partition_domain, 240 std::string* partition_domain,
240 std::string* partition_name, 241 std::string* partition_name,
241 bool* in_memory) { 242 bool* in_memory) {
(...skipping 1418 matching lines...) Expand 10 before | Expand all | Expand 10 after
1660 bool allow, 1661 bool allow,
1661 const std::string& user_input) { 1662 const std::string& user_input) {
1662 WebViewGuest* guest = 1663 WebViewGuest* guest =
1663 WebViewGuest::From(embedder_render_process_id(), new_window_instance_id); 1664 WebViewGuest::From(embedder_render_process_id(), new_window_instance_id);
1664 if (!guest) 1665 if (!guest)
1665 return; 1666 return;
1666 1667
1667 if (!allow) 1668 if (!allow)
1668 guest->Destroy(); 1669 guest->Destroy();
1669 } 1670 }
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