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

Side by Side Diff: chrome/browser/diagnostics/diagnostics_model.cc

Issue 819133004: Make callers of CommandLine use it via the base:: namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 5 years, 12 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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/diagnostics/diagnostics_model.h" 5 #include "chrome/browser/diagnostics/diagnostics_model.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 } 221 }
222 222
223 private: 223 private:
224 DISALLOW_COPY_AND_ASSIGN(DiagnosticsModelPosix); 224 DISALLOW_COPY_AND_ASSIGN(DiagnosticsModelPosix);
225 }; 225 };
226 226
227 #endif 227 #endif
228 228
229 } // namespace 229 } // namespace
230 230
231 DiagnosticsModel* MakeDiagnosticsModel(const CommandLine& cmdline) { 231 DiagnosticsModel* MakeDiagnosticsModel(const base::CommandLine& cmdline) {
232 base::FilePath user_data_dir = 232 base::FilePath user_data_dir =
233 cmdline.GetSwitchValuePath(switches::kUserDataDir); 233 cmdline.GetSwitchValuePath(switches::kUserDataDir);
234 if (!user_data_dir.empty()) 234 if (!user_data_dir.empty())
235 PathService::Override(chrome::DIR_USER_DATA, user_data_dir); 235 PathService::Override(chrome::DIR_USER_DATA, user_data_dir);
236 #if defined(OS_WIN) 236 #if defined(OS_WIN)
237 return new DiagnosticsModelWin(); 237 return new DiagnosticsModelWin();
238 #elif defined(OS_MACOSX) 238 #elif defined(OS_MACOSX)
239 return new DiagnosticsModelMac(); 239 return new DiagnosticsModelMac();
240 #elif defined(OS_POSIX) 240 #elif defined(OS_POSIX)
241 return new DiagnosticsModelPosix(); 241 return new DiagnosticsModelPosix();
242 #endif 242 #endif
243 } 243 }
244 244
245 } // namespace diagnostics 245 } // namespace diagnostics
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698