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

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

Issue 267573005: UMA stats for MTP file system in Chrome OS Files.app. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Count for all types of volumes. Created 6 years, 7 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 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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 case VOLUME_TYPE_PROVIDED: 161 case VOLUME_TYPE_PROVIDED:
162 volume_metadata->volume_type = file_browser_private::VOLUME_TYPE_PROVIDED; 162 volume_metadata->volume_type = file_browser_private::VOLUME_TYPE_PROVIDED;
163 break; 163 break;
164 case VOLUME_TYPE_MTP: 164 case VOLUME_TYPE_MTP:
165 volume_metadata->volume_type = file_browser_private::VOLUME_TYPE_MTP; 165 volume_metadata->volume_type = file_browser_private::VOLUME_TYPE_MTP;
166 break; 166 break;
167 case VOLUME_TYPE_TESTING: 167 case VOLUME_TYPE_TESTING:
168 volume_metadata->volume_type = 168 volume_metadata->volume_type =
169 file_browser_private::VOLUME_TYPE_TESTING; 169 file_browser_private::VOLUME_TYPE_TESTING;
170 break; 170 break;
171 case NUM_VOLUME_TYPE:
172 NOTREACHED();
173 break;
171 } 174 }
172 175
173 // Fill device_type iff the volume is removable partition. 176 // Fill device_type iff the volume is removable partition.
174 if (volume_info.type == VOLUME_TYPE_REMOVABLE_DISK_PARTITION) { 177 if (volume_info.type == VOLUME_TYPE_REMOVABLE_DISK_PARTITION) {
175 switch (volume_info.device_type) { 178 switch (volume_info.device_type) {
176 case chromeos::DEVICE_TYPE_UNKNOWN: 179 case chromeos::DEVICE_TYPE_UNKNOWN:
177 volume_metadata->device_type = 180 volume_metadata->device_type =
178 file_browser_private::DEVICE_TYPE_UNKNOWN; 181 file_browser_private::DEVICE_TYPE_UNKNOWN;
179 break; 182 break;
180 case chromeos::DEVICE_TYPE_USB: 183 case chromeos::DEVICE_TYPE_USB:
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 282
280 drive::EventLogger* GetLogger(Profile* profile) { 283 drive::EventLogger* GetLogger(Profile* profile) {
281 drive::DriveIntegrationService* service = 284 drive::DriveIntegrationService* service =
282 drive::DriveIntegrationServiceFactory::FindForProfileRegardlessOfStates( 285 drive::DriveIntegrationServiceFactory::FindForProfileRegardlessOfStates(
283 profile); 286 profile);
284 return service ? service->event_logger() : NULL; 287 return service ? service->event_logger() : NULL;
285 } 288 }
286 289
287 } // namespace util 290 } // namespace util
288 } // namespace file_manager 291 } // namespace file_manager
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698