| Index: cloud_print/gcp20/prototype/privet_http_server.cc
|
| diff --git a/cloud_print/gcp20/prototype/privet_http_server.cc b/cloud_print/gcp20/prototype/privet_http_server.cc
|
| index 41daa812687753fb36f3068ed1d1b200e3f88b11..8dfa0cc3a7cc75b423d4ecd47bbb1b7639a1a158 100644
|
| --- a/cloud_print/gcp20/prototype/privet_http_server.cc
|
| +++ b/cloud_print/gcp20/prototype/privet_http_server.cc
|
| @@ -7,6 +7,7 @@
|
| #include "base/command_line.h"
|
| #include "base/json/json_writer.h"
|
| #include "base/strings/stringprintf.h"
|
| +#include "cloud_print/gcp20/prototype/gcp20_switches.h"
|
| #include "net/base/ip_endpoint.h"
|
| #include "net/base/net_errors.h"
|
| #include "net/base/url_util.h"
|
| @@ -135,7 +136,7 @@ void PrivetHttpServer::OnHttpRequest(int connection_id,
|
| if (!ValidateRequestMethod(connection_id, url.path(), info.method))
|
| return;
|
|
|
| - if (!CommandLine::ForCurrentProcess()->HasSwitch("disable-x-token")) {
|
| + if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kDisableXTocken)) {
|
| net::HttpServerRequestInfo::HeadersMap::const_iterator iter =
|
| info.headers.find("x-privet-token");
|
| if (iter == info.headers.end()) {
|
|
|