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

Side by Side Diff: content/browser/web_contents/web_contents_impl.cc

Issue 267103002: Ignore title parameter for navigator.registerProtocolHandler. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix tests Created 6 years, 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/browser/web_contents/web_contents_impl.h" 5 #include "content/browser/web_contents/web_contents_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/debug/trace_event.h" 10 #include "base/debug/trace_event.h"
(...skipping 2649 matching lines...) Expand 10 before | Expand all | Expand 10 after
2660 const base::string16& title, 2660 const base::string16& title,
2661 bool user_gesture) { 2661 bool user_gesture) {
2662 if (!delegate_) 2662 if (!delegate_)
2663 return; 2663 return;
2664 2664
2665 ChildProcessSecurityPolicyImpl* policy = 2665 ChildProcessSecurityPolicyImpl* policy =
2666 ChildProcessSecurityPolicyImpl::GetInstance(); 2666 ChildProcessSecurityPolicyImpl::GetInstance();
2667 if (policy->IsPseudoScheme(protocol)) 2667 if (policy->IsPseudoScheme(protocol))
2668 return; 2668 return;
2669 2669
2670 delegate_->RegisterProtocolHandler(this, protocol, url, title, user_gesture); 2670 delegate_->RegisterProtocolHandler(this, protocol, url, user_gesture);
2671 } 2671 }
2672 2672
2673 void WebContentsImpl::OnFindReply(int request_id, 2673 void WebContentsImpl::OnFindReply(int request_id,
2674 int number_of_matches, 2674 int number_of_matches,
2675 const gfx::Rect& selection_rect, 2675 const gfx::Rect& selection_rect,
2676 int active_match_ordinal, 2676 int active_match_ordinal,
2677 bool final_update) { 2677 bool final_update) {
2678 if (delegate_) { 2678 if (delegate_) {
2679 delegate_->FindReply(this, request_id, number_of_matches, selection_rect, 2679 delegate_->FindReply(this, request_id, number_of_matches, selection_rect,
2680 active_match_ordinal, final_update); 2680 active_match_ordinal, final_update);
(...skipping 1289 matching lines...) Expand 10 before | Expand all | Expand 10 after
3970 3970
3971 void WebContentsImpl::OnPreferredSizeChanged(const gfx::Size& old_size) { 3971 void WebContentsImpl::OnPreferredSizeChanged(const gfx::Size& old_size) {
3972 if (!delegate_) 3972 if (!delegate_)
3973 return; 3973 return;
3974 const gfx::Size new_size = GetPreferredSize(); 3974 const gfx::Size new_size = GetPreferredSize();
3975 if (new_size != old_size) 3975 if (new_size != old_size)
3976 delegate_->UpdatePreferredSize(this, new_size); 3976 delegate_->UpdatePreferredSize(this, new_size);
3977 } 3977 }
3978 3978
3979 } // namespace content 3979 } // namespace content
OLDNEW
« no previous file with comments | « chrome/common/custom_handlers/protocol_handler.cc ('k') | content/public/browser/web_contents_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698