Index: components/gcm_driver/gcm_channel_status_syncer.cc |
diff --git a/components/gcm_driver/gcm_channel_status_syncer.cc b/components/gcm_driver/gcm_channel_status_syncer.cc |
index 958d3c39d4d1e8cac85737b7209fe0f24fa9eee9..a83ac631a9fb609d6390fbc918c613d9cee25629 100644 |
--- a/components/gcm_driver/gcm_channel_status_syncer.cc |
+++ b/components/gcm_driver/gcm_channel_status_syncer.cc |
@@ -108,9 +108,10 @@ GCMChannelStatusSyncer::GCMChannelStatusSyncer( |
poll_interval_seconds_ = |
GCMChannelStatusRequest::min_poll_interval_seconds(); |
} |
- if (CommandLine::ForCurrentProcess()->HasSwitch( |
- switches::kCustomPollIntervalMinutes)) { |
- std::string value(CommandLine::ForCurrentProcess()->GetSwitchValueASCII( |
+ const base::CommandLine& command_line = |
+ *base::CommandLine::ForCurrentProcess(); |
+ if (command_line.HasSwitch(switches::kCustomPollIntervalMinutes)) { |
+ std::string value(command_line.GetSwitchValueASCII( |
switches::kCustomPollIntervalMinutes)); |
int minutes = 0; |
if (base::StringToInt(value, &minutes)) { |