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

Side by Side Diff: chrome/browser/chromeos/system/statistics_provider.cc

Issue 14890005: Enable Clang warnings in .cc files for Linux+[Aura/ChromeOS] (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 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 (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/system/statistics_provider.h" 5 #include "chrome/browser/chromeos/system/statistics_provider.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/chromeos/chromeos_version.h" 8 #include "base/chromeos/chromeos_version.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 const CommandLine* command_line = CommandLine::ForCurrentProcess(); 286 const CommandLine* command_line = CommandLine::ForCurrentProcess();
287 if (command_line->HasSwitch(chromeos::switches::kChromeOSReleaseBoard)) { 287 if (command_line->HasSwitch(chromeos::switches::kChromeOSReleaseBoard)) {
288 *result = command_line-> 288 *result = command_line->
289 GetSwitchValueASCII(chromeos::switches::kChromeOSReleaseBoard); 289 GetSwitchValueASCII(chromeos::switches::kChromeOSReleaseBoard);
290 return true; 290 return true;
291 } 291 }
292 } 292 }
293 return false; 293 return false;
294 } 294 }
295 295
296 virtual void LoadOemManifest() { 296 virtual void LoadOemManifest() OVERRIDE {
297 CommandLine* command_line = CommandLine::ForCurrentProcess(); 297 CommandLine* command_line = CommandLine::ForCurrentProcess();
298 if (!command_line->HasSwitch(switches::kAppOemManifestFile)) 298 if (!command_line->HasSwitch(switches::kAppOemManifestFile))
299 return; 299 return;
300 300
301 LoadOemManifestFromFile( 301 LoadOemManifestFromFile(
302 command_line->GetSwitchValuePath(switches::kAppOemManifestFile)); 302 command_line->GetSwitchValuePath(switches::kAppOemManifestFile));
303 } 303 }
304 304
305 static StatisticsProviderStubImpl* GetInstance() { 305 static StatisticsProviderStubImpl* GetInstance() {
306 return Singleton<StatisticsProviderStubImpl, 306 return Singleton<StatisticsProviderStubImpl,
(...skipping 12 matching lines...) Expand all
319 StatisticsProvider* StatisticsProvider::GetInstance() { 319 StatisticsProvider* StatisticsProvider::GetInstance() {
320 if (base::chromeos::IsRunningOnChromeOS()) { 320 if (base::chromeos::IsRunningOnChromeOS()) {
321 return StatisticsProviderImpl::GetInstance(); 321 return StatisticsProviderImpl::GetInstance();
322 } else { 322 } else {
323 return StatisticsProviderStubImpl::GetInstance(); 323 return StatisticsProviderStubImpl::GetInstance();
324 } 324 }
325 } 325 }
326 326
327 } // namespace system 327 } // namespace system
328 } // namespace chromeos 328 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/system/ash_system_tray_delegate.cc ('k') | chrome/browser/extensions/notifications_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698