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

Unified Diff: content/browser/service_worker/service_worker_version.cc

Issue 803813003: Make callers of CommandLine use it via the base:: namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 | « content/browser/security_exploit_browsertest.cc ('k') | content/browser/site_per_process_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/service_worker/service_worker_version.cc
diff --git a/content/browser/service_worker/service_worker_version.cc b/content/browser/service_worker/service_worker_version.cc
index 1c9f725fc8ecc8526be74c45ad2e823cf56cc1f7..9c93adc7e14f76cf6bf530011e5c7a301f385fca 100644
--- a/content/browser/service_worker/service_worker_version.cc
+++ b/content/browser/service_worker/service_worker_version.cc
@@ -434,7 +434,7 @@ void ServiceWorkerVersion::DispatchFetchEvent(
void ServiceWorkerVersion::DispatchSyncEvent(const StatusCallback& callback) {
DCHECK_EQ(ACTIVATED, status()) << status();
- if (!CommandLine::ForCurrentProcess()->HasSwitch(
+ if (!base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kEnableServiceWorkerSync)) {
callback.Run(SERVICE_WORKER_ERROR_ABORT);
return;
@@ -465,7 +465,7 @@ void ServiceWorkerVersion::DispatchNotificationClickEvent(
const PlatformNotificationData& notification_data) {
DCHECK_EQ(ACTIVATED, status()) << status();
- if (!CommandLine::ForCurrentProcess()->HasSwitch(
+ if (!base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kEnableExperimentalWebPlatformFeatures)) {
callback.Run(SERVICE_WORKER_ERROR_ABORT);
return;
@@ -498,7 +498,7 @@ void ServiceWorkerVersion::DispatchPushEvent(const StatusCallback& callback,
const std::string& data) {
DCHECK_EQ(ACTIVATED, status()) << status();
- if (!CommandLine::ForCurrentProcess()->HasSwitch(
+ if (!base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kEnableExperimentalWebPlatformFeatures)) {
callback.Run(SERVICE_WORKER_ERROR_ABORT);
return;
@@ -530,7 +530,7 @@ void ServiceWorkerVersion::DispatchGeofencingEvent(
const blink::WebCircularGeofencingRegion& region) {
DCHECK_EQ(ACTIVATED, status()) << status();
- if (!CommandLine::ForCurrentProcess()->HasSwitch(
+ if (!base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kEnableExperimentalWebPlatformFeatures)) {
callback.Run(SERVICE_WORKER_ERROR_ABORT);
return;
@@ -565,7 +565,7 @@ void ServiceWorkerVersion::DispatchCrossOriginConnectEvent(
const CrossOriginServiceWorkerClient& client) {
DCHECK_EQ(ACTIVATED, status()) << status();
- if (!CommandLine::ForCurrentProcess()->HasSwitch(
+ if (!base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kEnableExperimentalWebPlatformFeatures)) {
callback.Run(SERVICE_WORKER_ERROR_ABORT, false);
return;
« no previous file with comments | « content/browser/security_exploit_browsertest.cc ('k') | content/browser/site_per_process_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698