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

Side by Side Diff: chrome/browser/notifications/balloon_host.cc

Issue 3036038: ChromeFrame currently overrides the request context for intercepting network ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/notifications/balloon_host.h" 5 #include "chrome/browser/notifications/balloon_host.h"
6 6
7 #include "chrome/browser/browser_list.h" 7 #include "chrome/browser/browser_list.h"
8 #include "chrome/browser/in_process_webkit/webkit_context.h" 8 #include "chrome/browser/in_process_webkit/webkit_context.h"
9 #include "chrome/browser/extensions/extension_process_manager.h" 9 #include "chrome/browser/extensions/extension_process_manager.h"
10 #include "chrome/browser/notifications/balloon.h" 10 #include "chrome/browser/notifications/balloon.h"
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 rvh->AllowBindings(BindingsPolicy::EXTENSION); 147 rvh->AllowBindings(BindingsPolicy::EXTENSION);
148 rvh->set_is_extension_process(true); 148 rvh->set_is_extension_process(true);
149 } 149 }
150 150
151 // Do platform-specific initialization. 151 // Do platform-specific initialization.
152 render_view_host_ = rvh; 152 render_view_host_ = rvh;
153 InitRenderWidgetHostView(); 153 InitRenderWidgetHostView();
154 DCHECK(render_widget_host_view()); 154 DCHECK(render_widget_host_view());
155 155
156 rvh->set_view(render_widget_host_view()); 156 rvh->set_view(render_widget_host_view());
157 rvh->CreateRenderView(GetProfile()->GetRequestContext(), string16()); 157 rvh->CreateRenderView(string16());
158 rvh->NavigateToURL(balloon_->notification().content_url()); 158 rvh->NavigateToURL(balloon_->notification().content_url());
159 159
160 initialized_ = true; 160 initialized_ = true;
161 } 161 }
162 162
163 void BalloonHost::NotifyDisconnect() { 163 void BalloonHost::NotifyDisconnect() {
164 if (!should_notify_on_disconnect_) 164 if (!should_notify_on_disconnect_)
165 return; 165 return;
166 166
167 should_notify_on_disconnect_ = false; 167 should_notify_on_disconnect_ = false;
168 NotificationService::current()->Notify( 168 NotificationService::current()->Notify(
169 NotificationType::NOTIFY_BALLOON_DISCONNECTED, 169 NotificationType::NOTIFY_BALLOON_DISCONNECTED,
170 Source<BalloonHost>(this), NotificationService::NoDetails()); 170 Source<BalloonHost>(this), NotificationService::NoDetails());
171 } 171 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698