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

Unified Diff: chrome/browser/plugins/plugin_observer.cc

Issue 1274383002: Remove deprecated CONTENT_SETTINGS_TYPE_METRO_SWITCH_TO_DESKTOP content setting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/webui/options/content_settings_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/plugins/plugin_observer.cc
diff --git a/chrome/browser/plugins/plugin_observer.cc b/chrome/browser/plugins/plugin_observer.cc
index 02877936bd8a955a890c02a6a48531d905ef9d5e..6032a0d152e72a03f05ed18b4cc2af60a7539f57 100644
--- a/chrome/browser/plugins/plugin_observer.cc
+++ b/chrome/browser/plugins/plugin_observer.cc
@@ -418,19 +418,6 @@ void PluginObserver::OnNPAPINotSupported(const std::string& identifier) {
DCHECK(base::win::IsMetroProcess());
#endif
- Profile* profile =
- Profile::FromBrowserContext(web_contents()->GetBrowserContext());
- if (profile->IsOffTheRecord())
- return;
- HostContentSettingsMap* content_settings =
- profile->GetHostContentSettingsMap();
- if (content_settings->GetContentSetting(
- web_contents()->GetURL(),
- web_contents()->GetURL(),
- CONTENT_SETTINGS_TYPE_METRO_SWITCH_TO_DESKTOP,
- std::string()) == CONTENT_SETTING_BLOCK)
- return;
-
scoped_ptr<PluginMetadata> plugin;
bool ret = PluginFinder::GetInstance()->FindPluginWithIdentifier(
identifier, NULL, &plugin);
« no previous file with comments | « no previous file | chrome/browser/ui/webui/options/content_settings_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698