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

Side by Side Diff: content/test/test_content_browser_client.cc

Issue 54863002: Implement a salt for MediaSource IDs that can be cleared by a user. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed review comments from tommi,joi and bauerb. Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/test/test_content_browser_client.h" 5 #include "content/test/test_content_browser_client.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 20 matching lines...) Expand all
31 } 31 }
32 32
33 base::FilePath TestContentBrowserClient::GetDefaultDownloadDirectory() { 33 base::FilePath TestContentBrowserClient::GetDefaultDownloadDirectory() {
34 if (!download_dir_.IsValid()) { 34 if (!download_dir_.IsValid()) {
35 bool result = download_dir_.CreateUniqueTempDir(); 35 bool result = download_dir_.CreateUniqueTempDir();
36 CHECK(result); 36 CHECK(result);
37 } 37 }
38 return download_dir_.path(); 38 return download_dir_.path();
39 } 39 }
40 40
41 std::string TestContentBrowserClient::GetMediaDeviceIDSalt(
42 ResourceContext* rc) {
43 CHECK(rc);
44 return "test_salt";
45 }
46
41 } // namespace content 47 } // namespace content
OLDNEW
« content/browser/media_devices_monitor.cc ('K') | « content/test/test_content_browser_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698