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

Side by Side Diff: chrome/browser/media/wv_test_license_server_config.cc

Issue 152013002: Disable WV test license server availability. (Closed) Base URL: http://git.chromium.org/chromium/src.git@load_cdm_perf
Patch Set: Created 6 years, 10 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/media/wv_test_license_server_config.h" 5 #include "chrome/browser/media/wv_test_license_server_config.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/path_service.h" 9 #include "base/path_service.h"
10 #include "base/strings/stringprintf.h" 10 #include "base/strings/stringprintf.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 command_line->AppendSwitchPath("policies_file", 59 command_line->AppendSwitchPath("policies_file",
60 config_path.Append(kPoliciesFileName)); 60 config_path.Append(kPoliciesFileName));
61 command_line->AppendSwitchPath("profiles_file", 61 command_line->AppendSwitchPath("profiles_file",
62 config_path.Append(kProfilesFileName)); 62 config_path.Append(kProfilesFileName));
63 command_line->AppendSwitchASCII("port", 63 command_line->AppendSwitchASCII("port",
64 base::StringPrintf("%u", kDefaultPort)); 64 base::StringPrintf("%u", kDefaultPort));
65 command_line->AppendSwitch("allow_unknown_devices"); 65 command_line->AppendSwitch("allow_unknown_devices");
66 } 66 }
67 67
68 bool WVTestLicenseServerConfig::IsPlatformSupported() { 68 bool WVTestLicenseServerConfig::IsPlatformSupported() {
69 #if defined(OS_LINUX) 69 // TODO(shadi): Enable on Linux once crbug.com/339983 is resolved.
70 return true;
71 #else
72 return false; 70 return false;
73 #endif // defined(OS_LINUX)
74 } 71 }
75 72
76 std::string WVTestLicenseServerConfig::GetServerURL() { 73 std::string WVTestLicenseServerConfig::GetServerURL() {
77 return base::StringPrintf("http://localhost:%u/license_server", kDefaultPort); 74 return base::StringPrintf("http://localhost:%u/license_server", kDefaultPort);
78 } 75 }
79 76
80 void WVTestLicenseServerConfig::GetLicenseServerPath(base::FilePath *path) { 77 void WVTestLicenseServerConfig::GetLicenseServerPath(base::FilePath *path) {
81 base::FilePath source_root; 78 base::FilePath source_root;
82 PathService::Get(base::DIR_SOURCE_ROOT, &source_root); 79 PathService::Get(base::DIR_SOURCE_ROOT, &source_root);
83 *path = source_root.Append(kLicenseServerRootPath) 80 *path = source_root.Append(kLicenseServerRootPath)
84 .Append(kLicenseServerBinPath); 81 .Append(kLicenseServerBinPath);
85 } 82 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698