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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 141703022: Support for file listing in privet local filesystem (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/local_discovery/storage/path_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_content_browser_client.cc
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
index c7626011f9e3a7a9c5deecd2ba925b0315220001..b4533cfd30b4c5de3b8b18bdbc2c808e9b254170 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -242,6 +242,11 @@
#include "chrome/browser/spellchecker/spellcheck_message_filter.h"
#endif
+
+#if defined(ENABLE_MDNS)
+#include "chrome/browser/local_discovery/storage/privet_filesystem_backend.h"
+#endif
+
using blink::WebWindowFeatures;
using base::FileDescriptor;
using content::AccessTokenStore;
@@ -2574,12 +2579,15 @@ void ChromeContentBrowserClient::GetAdditionalFileSystemBackends(
new sync_file_system::SyncFileSystemBackend(
Profile::FromBrowserContext(browser_context)));
+#if defined(ENABLE_MDNS)
if (CommandLine::ForCurrentProcess()->HasSwitch(
switches::kEnablePrivetStorage)) {
additional_backends->push_back(
new local_discovery::PrivetFileSystemBackend(
- fileapi::ExternalMountPoints::GetSystemInstance()));
+ fileapi::ExternalMountPoints::GetSystemInstance(),
+ browser_context));
}
+#endif
}
#if defined(OS_POSIX) && !defined(OS_MACOSX)
« no previous file with comments | « no previous file | chrome/browser/local_discovery/storage/path_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698