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

Side by Side Diff: chrome/browser/chromeos/extensions/file_manager/private_api_util.cc

Issue 1093383002: [WIP] Provided file system from NACL. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved several modules to chromeos folder. Created 5 years, 5 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/extensions/file_manager/private_api_util.h" 5 #include "chrome/browser/chromeos/extensions/file_manager/private_api_util.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/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 case VOLUME_TYPE_PROVIDED: 228 case VOLUME_TYPE_PROVIDED:
229 volume_metadata->volume_type = file_manager_private::VOLUME_TYPE_PROVIDED; 229 volume_metadata->volume_type = file_manager_private::VOLUME_TYPE_PROVIDED;
230 break; 230 break;
231 case VOLUME_TYPE_MTP: 231 case VOLUME_TYPE_MTP:
232 volume_metadata->volume_type = file_manager_private::VOLUME_TYPE_MTP; 232 volume_metadata->volume_type = file_manager_private::VOLUME_TYPE_MTP;
233 break; 233 break;
234 case VOLUME_TYPE_TESTING: 234 case VOLUME_TYPE_TESTING:
235 volume_metadata->volume_type = 235 volume_metadata->volume_type =
236 file_manager_private::VOLUME_TYPE_TESTING; 236 file_manager_private::VOLUME_TYPE_TESTING;
237 break; 237 break;
238 case VOLUME_TYPE_PLUGIN_PROVIDED:
239 volume_metadata->volume_type =
240 file_manager_private::VOLUME_TYPE_PLUGIN_PROVIDED;
241 break;
238 case NUM_VOLUME_TYPE: 242 case NUM_VOLUME_TYPE:
239 NOTREACHED(); 243 NOTREACHED();
240 break; 244 break;
241 } 245 }
242 246
243 // Fill device_type iff the volume is removable partition. 247 // Fill device_type iff the volume is removable partition.
244 if (volume.type() == VOLUME_TYPE_REMOVABLE_DISK_PARTITION) { 248 if (volume.type() == VOLUME_TYPE_REMOVABLE_DISK_PARTITION) {
245 switch (volume.device_type()) { 249 switch (volume.device_type()) {
246 case chromeos::DEVICE_TYPE_UNKNOWN: 250 case chromeos::DEVICE_TYPE_UNKNOWN:
247 volume_metadata->device_type = 251 volume_metadata->device_type =
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 } 362 }
359 363
360 drive::EventLogger* GetLogger(Profile* profile) { 364 drive::EventLogger* GetLogger(Profile* profile) {
361 drive::DriveIntegrationService* service = 365 drive::DriveIntegrationService* service =
362 drive::DriveIntegrationServiceFactory::FindForProfile(profile); 366 drive::DriveIntegrationServiceFactory::FindForProfile(profile);
363 return service ? service->event_logger() : NULL; 367 return service ? service->event_logger() : NULL;
364 } 368 }
365 369
366 } // namespace util 370 } // namespace util
367 } // namespace file_manager 371 } // namespace file_manager
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698