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

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

Issue 8774041: Upgrade all call sites of PageNavigator::OpenURL that pass a referrer to use OpenURLParams (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years 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
« no previous file with comments | « no previous file | chrome/browser/tab_contents/insecure_content_infobar_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 weak_ptr_factory_.GetWeakPtr(), installer))); 343 weak_ptr_factory_.GetWeakPtr(), installer)));
344 } 344 }
345 345
346 void PluginObserver::DidNotFindMissingPlugin(int placeholder_id, 346 void PluginObserver::DidNotFindMissingPlugin(int placeholder_id,
347 const std::string& mime_type) { 347 const std::string& mime_type) {
348 Send(new ChromeViewMsg_DidNotFindMissingPlugin(placeholder_id)); 348 Send(new ChromeViewMsg_DidNotFindMissingPlugin(placeholder_id));
349 } 349 }
350 350
351 void PluginObserver::InstallMissingPlugin(PluginInstaller* installer) { 351 void PluginObserver::InstallMissingPlugin(PluginInstaller* installer) {
352 if (installer->url_for_display()) { 352 if (installer->url_for_display()) {
353 tab_contents()->OpenURL(installer->plugin_url(), tab_contents()->GetURL(), 353 tab_contents()->OpenURL(OpenURLParams(
354 NEW_FOREGROUND_TAB, content::PAGE_TRANSITION_TYPED); 354 installer->plugin_url(), tab_contents()->GetURL(),
355 NEW_FOREGROUND_TAB, content::PAGE_TRANSITION_TYPED, false));
355 } else { 356 } else {
356 NOTIMPLEMENTED(); 357 NOTIMPLEMENTED();
357 } 358 }
358 } 359 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/tab_contents/insecure_content_infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698