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

Side by Side Diff: chrome/browser/plugin_observer.cc

Issue 9030010: Move most of the remaining users of WebContentsObserver::tab_contents() to use web_contents(). (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 12 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/plugin_observer.h" 5 #include "chrome/browser/plugin_observer.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
9 #include "chrome/browser/browser_process.h" 9 #include "chrome/browser/browser_process.h"
10 #include "chrome/browser/content_settings/host_content_settings_map.h" 10 #include "chrome/browser/content_settings/host_content_settings_map.h"
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 weak_ptr_factory_.GetWeakPtr(), installer))); 345 weak_ptr_factory_.GetWeakPtr(), installer)));
346 } 346 }
347 347
348 void PluginObserver::DidNotFindMissingPlugin(int placeholder_id, 348 void PluginObserver::DidNotFindMissingPlugin(int placeholder_id,
349 const std::string& mime_type) { 349 const std::string& mime_type) {
350 Send(new ChromeViewMsg_DidNotFindMissingPlugin(placeholder_id)); 350 Send(new ChromeViewMsg_DidNotFindMissingPlugin(placeholder_id));
351 } 351 }
352 352
353 void PluginObserver::InstallMissingPlugin(PluginInstaller* installer) { 353 void PluginObserver::InstallMissingPlugin(PluginInstaller* installer) {
354 if (installer->url_for_display()) { 354 if (installer->url_for_display()) {
355 tab_contents()->OpenURL(OpenURLParams( 355 web_contents()->OpenURL(OpenURLParams(
356 installer->plugin_url(), 356 installer->plugin_url(),
357 content::Referrer(tab_contents()->GetURL(), 357 content::Referrer(web_contents()->GetURL(),
358 WebKit::WebReferrerPolicyDefault), 358 WebKit::WebReferrerPolicyDefault),
359 NEW_FOREGROUND_TAB, content::PAGE_TRANSITION_TYPED, false)); 359 NEW_FOREGROUND_TAB, content::PAGE_TRANSITION_TYPED, false));
360 } else { 360 } else {
361 NOTIMPLEMENTED(); 361 NOTIMPLEMENTED();
362 } 362 }
363 } 363 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_webnavigation_api.cc ('k') | chrome/browser/prerender/prerender_contents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698