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

Side by Side Diff: chrome/renderer/chrome_content_renderer_client.cc

Issue 136643006: Clean up some ifdefs around Win Aura. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 6 years, 10 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) 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/renderer/chrome_content_renderer_client.h" 5 #include "chrome/renderer/chrome_content_renderer_client.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/debug/crash_logging.h" 8 #include "base/debug/crash_logging.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
(...skipping 574 matching lines...) Expand 10 before | Expand all | Expand 10 after
585 } 585 }
586 586
587 // Allow full-page plug-ins for click-to-play. 587 // Allow full-page plug-ins for click-to-play.
588 if (status_value == ChromeViewHostMsg_GetPluginInfo_Status::kClickToPlay && 588 if (status_value == ChromeViewHostMsg_GetPluginInfo_Status::kClickToPlay &&
589 !frame->parent() && 589 !frame->parent() &&
590 !frame->opener() && 590 !frame->opener() &&
591 frame->document().isPluginDocument()) { 591 frame->document().isPluginDocument()) {
592 status_value = ChromeViewHostMsg_GetPluginInfo_Status::kAllowed; 592 status_value = ChromeViewHostMsg_GetPluginInfo_Status::kAllowed;
593 } 593 }
594 594
595 #if defined(USE_AURA) && defined(OS_WIN) 595 #if defined(OS_WIN)
596 // In Aura for Windows we need to check if we can load NPAPI plugins. 596 // In Windows we need to check if we can load NPAPI plugins.
597 // For example, if the render view is in the Ash desktop, we should not. 597 // For example, if the render view is in the Ash desktop, we should not.
598 if (status_value == ChromeViewHostMsg_GetPluginInfo_Status::kAllowed && 598 if (status_value == ChromeViewHostMsg_GetPluginInfo_Status::kAllowed &&
599 plugin.type == content::WebPluginInfo::PLUGIN_TYPE_NPAPI) { 599 plugin.type == content::WebPluginInfo::PLUGIN_TYPE_NPAPI) {
600 if (observer->AreNPAPIPluginsBlocked()) 600 if (observer->AreNPAPIPluginsBlocked())
601 status_value = 601 status_value =
602 ChromeViewHostMsg_GetPluginInfo_Status::kNPAPINotSupported; 602 ChromeViewHostMsg_GetPluginInfo_Status::kNPAPINotSupported;
603 } 603 }
604 #endif 604 #endif
605 605
606 switch (status_value) { 606 switch (status_value) {
(...skipping 810 matching lines...) Expand 10 before | Expand all | Expand 10 after
1417 CommandLine* command_line = CommandLine::ForCurrentProcess(); 1417 CommandLine* command_line = CommandLine::ForCurrentProcess();
1418 return !command_line->HasSwitch(extensions::switches::kExtensionProcess); 1418 return !command_line->HasSwitch(extensions::switches::kExtensionProcess);
1419 } 1419 }
1420 1420
1421 blink::WebWorkerPermissionClientProxy* 1421 blink::WebWorkerPermissionClientProxy*
1422 ChromeContentRendererClient::CreateWorkerPermissionClientProxy( 1422 ChromeContentRendererClient::CreateWorkerPermissionClientProxy(
1423 content::RenderFrame* render_frame, 1423 content::RenderFrame* render_frame,
1424 blink::WebFrame* frame) { 1424 blink::WebFrame* frame) {
1425 return new WorkerPermissionClientProxy(render_frame, frame); 1425 return new WorkerPermissionClientProxy(render_frame, frame);
1426 } 1426 }
OLDNEW
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | chrome/renderer/safe_browsing/phishing_classifier_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698