summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/notifications
diff options
context:
space:
mode:
authorerg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-26 20:19:29 +0000
committererg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-26 20:19:29 +0000
commit7e7414aeab90afaeeb7b29cfde1ce19d90529a37 (patch)
tree4d3d5176a7c90204ae336753fef127dff1ce380f /chrome/browser/views/notifications
parent62299d40f271bfaae651f8dcfea4da8170a7bc14 (diff)
downloadchromium_src-7e7414aeab90afaeeb7b29cfde1ce19d90529a37.zip
chromium_src-7e7414aeab90afaeeb7b29cfde1ce19d90529a37.tar.gz
chromium_src-7e7414aeab90afaeeb7b29cfde1ce19d90529a37.tar.bz2
Associate popups with the top level frame instead of the security origin.
No longer send the creator from the renderer to the browser since this was all it was used for. BUG=none TEST=none Review URL: http://codereview.chromium.org/543199 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37143 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/notifications')
-rw-r--r--chrome/browser/views/notifications/balloon_view_host.cc5
-rw-r--r--chrome/browser/views/notifications/balloon_view_host.h5
2 files changed, 4 insertions, 6 deletions
diff --git a/chrome/browser/views/notifications/balloon_view_host.cc b/chrome/browser/views/notifications/balloon_view_host.cc
index 0a02d63..df074b0 100644
--- a/chrome/browser/views/notifications/balloon_view_host.cc
+++ b/chrome/browser/views/notifications/balloon_view_host.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -83,8 +83,7 @@ void BalloonViewHost::CreateNewWindow(int route_id) {
void BalloonViewHost::ShowCreatedWindow(int route_id,
WindowOpenDisposition disposition,
const gfx::Rect& initial_pos,
- bool user_gesture,
- const GURL& creator_url) {
+ bool user_gesture) {
// Don't allow pop-ups from notifications.
if (disposition == NEW_POPUP)
return;
diff --git a/chrome/browser/views/notifications/balloon_view_host.h b/chrome/browser/views/notifications/balloon_view_host.h
index 884dc26..4233122 100644
--- a/chrome/browser/views/notifications/balloon_view_host.h
+++ b/chrome/browser/views/notifications/balloon_view_host.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -65,8 +65,7 @@ class BalloonViewHost : public views::NativeViewHost,
virtual void ShowCreatedWindow(int route_id,
WindowOpenDisposition disposition,
const gfx::Rect& initial_pos,
- bool user_gesture,
- const GURL& creator_url);
+ bool user_gesture);
virtual void ShowCreatedWidget(int route_id,
const gfx::Rect& initial_pos) {}
virtual void ShowContextMenu(const ContextMenuParams& params) {}