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

Side by Side Diff: chrome/browser/chromeos/gdata/gdata_system_service.cc

Issue 10830211: Revert 150436 - gdata: Remove hide_hosted_documents from ReadDirectoryCallback (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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 | 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 "chrome/browser/chromeos/gdata/gdata_system_service.h" 5 #include "chrome/browser/chromeos/gdata/gdata_system_service.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "chrome/browser/browser_process.h" 9 #include "chrome/browser/browser_process.h"
10 #include "chrome/browser/chromeos/gdata/drive_webapps_registry.h" 10 #include "chrome/browser/chromeos/gdata/drive_webapps_registry.h"
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 void GDataSystemService::AddDriveMountPoint() { 134 void GDataSystemService::AddDriveMountPoint() {
135 if (!gdata::util::IsGDataAvailable(profile_)) 135 if (!gdata::util::IsGDataAvailable(profile_))
136 return; 136 return;
137 137
138 const FilePath mount_point = gdata::util::GetGDataMountPointPath(); 138 const FilePath mount_point = gdata::util::GetGDataMountPointPath();
139 fileapi::ExternalFileSystemMountPointProvider* provider = 139 fileapi::ExternalFileSystemMountPointProvider* provider =
140 BrowserContext::GetFileSystemContext(profile_)->external_provider(); 140 BrowserContext::GetFileSystemContext(profile_)->external_provider();
141 if (provider && !provider->HasMountPoint(mount_point)) { 141 if (provider && !provider->HasMountPoint(mount_point)) {
142 provider->AddRemoteMountPoint( 142 provider->AddRemoteMountPoint(
143 mount_point, 143 mount_point,
144 new GDataFileSystemProxy(file_system_.get(), profile_)); 144 new GDataFileSystemProxy(file_system_.get()));
145 } 145 }
146 146
147 file_system_->Initialize(); 147 file_system_->Initialize();
148 file_system_->NotifyFileSystemMounted(); 148 file_system_->NotifyFileSystemMounted();
149 } 149 }
150 150
151 void GDataSystemService::RemoveDriveMountPoint() { 151 void GDataSystemService::RemoveDriveMountPoint() {
152 file_system_->NotifyFileSystemToBeUnmounted(); 152 file_system_->NotifyFileSystemToBeUnmounted();
153 file_system_->StopUpdates(); 153 file_system_->StopUpdates();
154 154
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 g_test_cache_root ? FilePath(*g_test_cache_root) : 218 g_test_cache_root ? FilePath(*g_test_cache_root) :
219 GDataCache::GetCacheRootPath(profile); 219 GDataCache::GetCacheRootPath(profile);
220 delete g_test_cache_root; 220 delete g_test_cache_root;
221 g_test_cache_root = NULL; 221 g_test_cache_root = NULL;
222 222
223 service->Initialize(documents_service, cache_root); 223 service->Initialize(documents_service, cache_root);
224 return service; 224 return service;
225 } 225 }
226 226
227 } // namespace gdata 227 } // namespace gdata
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_file_system_unittest.cc ('k') | chrome/browser/ui/webui/chromeos/drive_internals_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698