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

Unified Diff: chrome/browser/extensions/api/web_request/web_request_api.cc

Issue 332413003: Cleanup: Remove #ifdefs in extensions code that is disabled on mobile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 6 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
Index: chrome/browser/extensions/api/web_request/web_request_api.cc
diff --git a/chrome/browser/extensions/api/web_request/web_request_api.cc b/chrome/browser/extensions/api/web_request/web_request_api.cc
index 025fc2d3cbd63241e15d531e2167da9cf42b1565..556028281dc11bd98c29308971da210fed137202 100644
--- a/chrome/browser/extensions/api/web_request/web_request_api.cc
+++ b/chrome/browser/extensions/api/web_request/web_request_api.cc
@@ -415,7 +415,6 @@ void SendOnMessageEventOnUI(
extensions::EventFilteringInfo event_filtering_info;
std::string event_name;
-#if defined(ENABLE_EXTENSIONS)
// The instance ID uniquely identifies a <webview> instance within an embedder
// process. We use a filter here so that only event listeners for a particular
// <webview> will fire.
@@ -425,11 +424,6 @@ void SendOnMessageEventOnUI(
} else {
event_name = declarative_keys::kOnMessage;
}
-#else
- // TODO(thestig) Remove this once the WebRequestAPI code is disabled.
- // http://crbug.com/305852
- NOTREACHED();
-#endif
scoped_ptr<extensions::Event> event(new extensions::Event(
event_name,
« no previous file with comments | « chrome/browser/extensions/api/tabs/tabs_api.cc ('k') | chrome/browser/guest_view/web_view/web_view_guest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698