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

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

Issue 63273002: Rename WebKit namespace to blink (part 4) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 | « chrome/browser/plugins/plugin_installer.cc ('k') | chrome/browser/policy/policy_browsertest.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) 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 "chrome/browser/plugins/plugin_observer.h" 5 #include "chrome/browser/plugins/plugin_observer.h"
6 6
7 #include "base/auto_reset.h" 7 #include "base/auto_reset.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/debug/crash_logging.h" 9 #include "base/debug/crash_logging.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 } 359 }
360 delete it->second; 360 delete it->second;
361 plugin_placeholders_.erase(it); 361 plugin_placeholders_.erase(it);
362 } 362 }
363 #endif // defined(ENABLE_PLUGIN_INSTALLATION) 363 #endif // defined(ENABLE_PLUGIN_INSTALLATION)
364 364
365 void PluginObserver::OnOpenAboutPlugins() { 365 void PluginObserver::OnOpenAboutPlugins() {
366 web_contents()->OpenURL(OpenURLParams( 366 web_contents()->OpenURL(OpenURLParams(
367 GURL(chrome::kAboutPluginsURL), 367 GURL(chrome::kAboutPluginsURL),
368 content::Referrer(web_contents()->GetURL(), 368 content::Referrer(web_contents()->GetURL(),
369 WebKit::WebReferrerPolicyDefault), 369 blink::WebReferrerPolicyDefault),
370 NEW_FOREGROUND_TAB, content::PAGE_TRANSITION_AUTO_BOOKMARK, false)); 370 NEW_FOREGROUND_TAB, content::PAGE_TRANSITION_AUTO_BOOKMARK, false));
371 } 371 }
372 372
373 void PluginObserver::OnCouldNotLoadPlugin(const base::FilePath& plugin_path) { 373 void PluginObserver::OnCouldNotLoadPlugin(const base::FilePath& plugin_path) {
374 g_browser_process->metrics_service()->LogPluginLoadingError(plugin_path); 374 g_browser_process->metrics_service()->LogPluginLoadingError(plugin_path);
375 string16 plugin_name = 375 string16 plugin_name =
376 PluginService::GetInstance()->GetPluginDisplayNameByPath(plugin_path); 376 PluginService::GetInstance()->GetPluginDisplayNameByPath(plugin_path);
377 SimpleAlertInfoBarDelegate::Create( 377 SimpleAlertInfoBarDelegate::Create(
378 InfoBarService::FromWebContents(web_contents()), 378 InfoBarService::FromWebContents(web_contents()),
379 IDR_INFOBAR_PLUGIN_CRASHED, 379 IDR_INFOBAR_PLUGIN_CRASHED,
(...skipping 24 matching lines...) Expand all
404 scoped_ptr<PluginMetadata> plugin; 404 scoped_ptr<PluginMetadata> plugin;
405 bool ret = PluginFinder::GetInstance()->FindPluginWithIdentifier( 405 bool ret = PluginFinder::GetInstance()->FindPluginWithIdentifier(
406 identifier, NULL, &plugin); 406 identifier, NULL, &plugin);
407 DCHECK(ret); 407 DCHECK(ret);
408 408
409 PluginMetroModeInfoBarDelegate::Create( 409 PluginMetroModeInfoBarDelegate::Create(
410 InfoBarService::FromWebContents(web_contents()), 410 InfoBarService::FromWebContents(web_contents()),
411 PluginMetroModeInfoBarDelegate::DESKTOP_MODE_REQUIRED, plugin->name()); 411 PluginMetroModeInfoBarDelegate::DESKTOP_MODE_REQUIRED, plugin->name());
412 #endif 412 #endif
413 } 413 }
OLDNEW
« no previous file with comments | « chrome/browser/plugins/plugin_installer.cc ('k') | chrome/browser/policy/policy_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698