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

Side by Side Diff: chrome/browser/chromeos/extensions/file_browser_event_router.cc

Issue 10617004: chromeos: Remove "error_libcros_missing" error from file browser private API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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
« no previous file with comments | « no previous file | chrome/browser/resources/file_manager/js/volume_manager.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/extensions/file_browser_event_router.h" 5 #include "chrome/browser/chromeos/extensions/file_browser_event_router.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/json/json_writer.h" 8 #include "base/json/json_writer.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/stl_util.h" 10 #include "base/stl_util.h"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 case chromeos::MOUNT_ERROR_UNKNOWN: 67 case chromeos::MOUNT_ERROR_UNKNOWN:
68 return "error_unknown"; 68 return "error_unknown";
69 case chromeos::MOUNT_ERROR_INTERNAL: 69 case chromeos::MOUNT_ERROR_INTERNAL:
70 return "error_internal"; 70 return "error_internal";
71 case chromeos::MOUNT_ERROR_UNKNOWN_FILESYSTEM: 71 case chromeos::MOUNT_ERROR_UNKNOWN_FILESYSTEM:
72 return "error_unknown_filesystem"; 72 return "error_unknown_filesystem";
73 case chromeos::MOUNT_ERROR_UNSUPPORTED_FILESYSTEM: 73 case chromeos::MOUNT_ERROR_UNSUPPORTED_FILESYSTEM:
74 return "error_unsuported_filesystem"; 74 return "error_unsuported_filesystem";
75 case chromeos::MOUNT_ERROR_INVALID_ARCHIVE: 75 case chromeos::MOUNT_ERROR_INVALID_ARCHIVE:
76 return "error_invalid_archive"; 76 return "error_invalid_archive";
77 case chromeos::MOUNT_ERROR_LIBRARY_NOT_LOADED:
78 return "error_libcros_missing";
79 case chromeos::MOUNT_ERROR_NOT_AUTHENTICATED: 77 case chromeos::MOUNT_ERROR_NOT_AUTHENTICATED:
80 return "error_authentication"; 78 return "error_authentication";
81 case chromeos::MOUNT_ERROR_NETWORK_ERROR:
82 return "error_libcros_missing";
satorux1 2012/06/21 14:42:24 Yeah, it should be safe to remove this as MOUNT_ER
83 case chromeos::MOUNT_ERROR_PATH_UNMOUNTED: 79 case chromeos::MOUNT_ERROR_PATH_UNMOUNTED:
84 return "error_path_unmounted"; 80 return "error_path_unmounted";
85 default: 81 default:
86 NOTREACHED(); 82 NOTREACHED();
87 } 83 }
88 return ""; 84 return "";
89 } 85 }
90 86
91 FileBrowserEventRouter::FileBrowserEventRouter( 87 FileBrowserEventRouter::FileBrowserEventRouter(
92 Profile* profile) 88 Profile* profile)
(...skipping 687 matching lines...) Expand 10 before | Expand all | Expand 10 after
780 return scoped_refptr<RefcountedProfileKeyedService>( 776 return scoped_refptr<RefcountedProfileKeyedService>(
781 new FileBrowserEventRouter(profile)); 777 new FileBrowserEventRouter(profile));
782 } 778 }
783 779
784 bool FileBrowserEventRouterFactory::ServiceHasOwnInstanceInIncognito() { 780 bool FileBrowserEventRouterFactory::ServiceHasOwnInstanceInIncognito() {
785 // Explicitly and always allow this router in guest login mode. see 781 // Explicitly and always allow this router in guest login mode. see
786 // chrome/browser/profiles/profile_keyed_base_factory.h comment 782 // chrome/browser/profiles/profile_keyed_base_factory.h comment
787 // for the details. 783 // for the details.
788 return true; 784 return true;
789 } 785 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/file_manager/js/volume_manager.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698