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

Side by Side Diff: chromeos/chromeos_paths.cc

Issue 1145793002: Add missing break statement in chromeos path switch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | no next file » | 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 "chromeos/chromeos_paths.h" 5 #include "chromeos/chromeos_paths.h"
6 6
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "base/files/file_util.h" 8 #include "base/files/file_util.h"
9 #include "base/path_service.h" 9 #include "base/path_service.h"
10 #include "base/sys_info.h" 10 #include "base/sys_info.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 *result = base::FilePath(kDeviceLocalAccountExtensionDir); 77 *result = base::FilePath(kDeviceLocalAccountExtensionDir);
78 break; 78 break;
79 case DIR_DEVICE_LOCAL_ACCOUNT_EXTERNAL_DATA: 79 case DIR_DEVICE_LOCAL_ACCOUNT_EXTERNAL_DATA:
80 *result = base::FilePath(kDeviceLocalAccountExternalDataDir); 80 *result = base::FilePath(kDeviceLocalAccountExternalDataDir);
81 break; 81 break;
82 case DIR_DEVICE_LOCAL_ACCOUNT_COMPONENT_POLICY: 82 case DIR_DEVICE_LOCAL_ACCOUNT_COMPONENT_POLICY:
83 *result = base::FilePath(kDeviceLocalAccountComponentPolicy); 83 *result = base::FilePath(kDeviceLocalAccountComponentPolicy);
84 break; 84 break;
85 case DIR_DEVICE_COLOR_CALIBRATION_PROFILES: 85 case DIR_DEVICE_COLOR_CALIBRATION_PROFILES:
86 *result = base::FilePath(kDeviceColorProfileDirectory); 86 *result = base::FilePath(kDeviceColorProfileDirectory);
87 break;
87 default: 88 default:
88 return false; 89 return false;
89 } 90 }
90 return true; 91 return true;
91 } 92 }
92 93
93 } // namespace 94 } // namespace
94 95
95 void RegisterPathProvider() { 96 void RegisterPathProvider() {
96 PathService::RegisterProvider(PathProvider, PATH_START, PATH_END); 97 PathService::RegisterProvider(PathProvider, PATH_START, PATH_END);
(...skipping 29 matching lines...) Expand all
126 parent.AppendASCII("stub_device_local_account_extensions")); 127 parent.AppendASCII("stub_device_local_account_extensions"));
127 PathService::Override( 128 PathService::Override(
128 DIR_DEVICE_LOCAL_ACCOUNT_EXTERNAL_DATA, 129 DIR_DEVICE_LOCAL_ACCOUNT_EXTERNAL_DATA,
129 parent.AppendASCII("stub_device_local_account_external_data")); 130 parent.AppendASCII("stub_device_local_account_external_data"));
130 PathService::Override( 131 PathService::Override(
131 DIR_DEVICE_LOCAL_ACCOUNT_COMPONENT_POLICY, 132 DIR_DEVICE_LOCAL_ACCOUNT_COMPONENT_POLICY,
132 parent.AppendASCII("stub_device_local_account_component_policy")); 133 parent.AppendASCII("stub_device_local_account_component_policy"));
133 } 134 }
134 135
135 } // namespace chromeos 136 } // namespace chromeos
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698