Skip to content

Commit

Permalink
Remove some dead code in ChromeRenderViewObserver related to a method…
Browse files Browse the repository at this point in the history
… on WebPermissionClient that doesn't exist anymore.

BUG=304341
R=nasko@chromium.org

Review URL: https://codereview.chromium.org/113063006

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@240215 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
jam@chromium.org committed Dec 11, 2013
1 parent bf68767 commit c69c868
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 20 deletions.
3 changes: 0 additions & 3 deletions chrome/browser/chrome_content_browser_client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1503,9 +1503,6 @@ void ChromeContentBrowserClient::AppendExtraCommandLineSwitches(
#endif
}

if (message_center::IsRichNotificationEnabled())
command_line->AppendSwitch(switches::kDisableHTMLNotifications);

// Please keep this in alphabetical order.
static const char* const kSwitchNames[] = {
autofill::switches::kDisableInteractiveAutocomplete,
Expand Down
11 changes: 0 additions & 11 deletions chrome/renderer/chrome_render_view_observer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -589,17 +589,6 @@ bool ChromeRenderViewObserver::allowWebComponents(const WebDocument& document,
return false;
}

bool ChromeRenderViewObserver::allowHTMLNotifications(
const WebDocument& document) {
CommandLine* command_line = CommandLine::ForCurrentProcess();
if (command_line->HasSwitch(switches::kDisableHTMLNotifications))
return false;

WebSecurityOrigin origin = document.securityOrigin();
const extensions::Extension* extension = GetExtension(origin);
return extension && extension->HasAPIPermission(APIPermission::kNotification);
}

bool ChromeRenderViewObserver::allowMutationEvents(const WebDocument& document,
bool default_value) {
WebSecurityOrigin origin = document.securityOrigin();
Expand Down
2 changes: 0 additions & 2 deletions chrome/renderer/chrome_render_view_observer.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,6 @@ class ChromeRenderViewObserver : public content::RenderViewObserver,
virtual bool allowWriteToClipboard(blink::WebFrame* frame,
bool default_value);
virtual bool allowWebComponents(const blink::WebDocument&, bool);
virtual bool allowHTMLNotifications(
const blink::WebDocument& document);
virtual bool allowMutationEvents(const blink::WebDocument&,
bool default_value);
virtual bool allowPushState(const blink::WebDocument&);
Expand Down
3 changes: 0 additions & 3 deletions content/public/common/content_switches.cc
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,6 @@ const char kDisableHangMonitor[] = "disable-hang-monitor";
// Disable the RenderThread's HistogramCustomizer.
const char kDisableHistogramCustomizer[] = "disable-histogram-customizer";

// Disables HTML-based desktop notifications.
const char kDisableHTMLNotifications[] = "disable-html-notifications";

// Disable the use of an ImageTransportSurface. This means the GPU process
// will present the rendered page rather than the browser process.
const char kDisableImageTransportSurface[] = "disable-image-transport-surface";
Expand Down
1 change: 0 additions & 1 deletion content/public/common/content_switches.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ CONTENT_EXPORT extern const char kDisableGpuSandbox[];
CONTENT_EXPORT extern const char kDisableGpuWatchdog[];
CONTENT_EXPORT extern const char kDisableHangMonitor[];
extern const char kDisableHistogramCustomizer[];
CONTENT_EXPORT extern const char kDisableHTMLNotifications[];
extern const char kDisableImageTransportSurface[];
CONTENT_EXPORT extern const char kDisableJava[];
CONTENT_EXPORT extern const char kDisableJavaScript[];
Expand Down

0 comments on commit c69c868

Please sign in to comment.