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

Unified Diff: chrome/browser/extensions/api/gcd_private/gcd_private_api.cc

Issue 1450213002: Enable PrivetV3Session without checking command line flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@context7
Patch Set: Created 5 years, 1 month 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 | « chrome/browser/about_flags.cc ('k') | chrome/browser/extensions/api/gcd_private/gcd_private_apitest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/gcd_private/gcd_private_api.cc
diff --git a/chrome/browser/extensions/api/gcd_private/gcd_private_api.cc b/chrome/browser/extensions/api/gcd_private/gcd_private_api.cc
index bbf6f29bccfc437ba9e008ab818f89b587dbca69..e26d38e652540f2be9c06788fee8ebc3c9879867 100644
--- a/chrome/browser/extensions/api/gcd_private/gcd_private_api.cc
+++ b/chrome/browser/extensions/api/gcd_private/gcd_private_api.cc
@@ -4,7 +4,6 @@
#include "chrome/browser/extensions/api/gcd_private/gcd_private_api.h"
-#include "base/command_line.h"
#include "base/lazy_instance.h"
#include "base/memory/linked_ptr.h"
#include "base/thread_task_runner_handle.h"
@@ -13,7 +12,6 @@
#include "chrome/browser/local_discovery/endpoint_resolver.h"
#include "chrome/browser/local_discovery/service_discovery_shared_client.h"
#include "chrome/browser/profiles/profile.h"
-#include "chrome/common/chrome_switches.h"
#include "content/public/browser/browser_context.h"
#include "net/url_request/url_request_context_getter.h"
@@ -127,11 +125,6 @@ GcdPrivateAPIImpl* GcdPrivateAPIImpl::Get(content::BrowserContext* context) {
void GcdPrivateAPIImpl::CreateSession(const std::string& service_name,
const CreateSessionCallback& callback) {
int session_id = last_session_id_++;
- if (!base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnablePrivetV3)) {
- return callback.Run(session_id, gcd_private::STATUS_SESSIONERROR,
- base::DictionaryValue());
- }
auto& session_data = sessions_[session_id];
session_data.resolver.reset(new local_discovery::EndpointResolver());
session_data.resolver->Start(
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | chrome/browser/extensions/api/gcd_private/gcd_private_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698