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

Side by Side Diff: chrome/browser/about_flags.cc

Issue 8344001: OpenBSD patches for chrome/content, split from CR #8275005 (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 9 years, 2 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/about_flags.h" 5 #include "chrome/browser/about_flags.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <iterator> 8 #include <iterator>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 629 matching lines...) Expand 10 before | Expand all | Expand 10 after
640 FlagsState::GetInstance()->RemoveFlagsSwitches(switch_list); 640 FlagsState::GetInstance()->RemoveFlagsSwitches(switch_list);
641 } 641 }
642 642
643 int GetCurrentPlatform() { 643 int GetCurrentPlatform() {
644 #if defined(OS_MACOSX) 644 #if defined(OS_MACOSX)
645 return kOsMac; 645 return kOsMac;
646 #elif defined(OS_WIN) 646 #elif defined(OS_WIN)
647 return kOsWin; 647 return kOsWin;
648 #elif defined(OS_CHROMEOS) // Needs to be before the OS_LINUX check. 648 #elif defined(OS_CHROMEOS) // Needs to be before the OS_LINUX check.
649 return kOsCrOS; 649 return kOsCrOS;
650 #elif defined(OS_LINUX) 650 #elif defined(OS_LINUX) || defined(OS_OPENBSD)
651 return kOsLinux; 651 return kOsLinux;
652 #else 652 #else
653 #error Unknown platform 653 #error Unknown platform
654 #endif 654 #endif
655 } 655 }
656 656
657 void RecordUMAStatistics(const PrefService* prefs) { 657 void RecordUMAStatistics(const PrefService* prefs) {
658 std::set<std::string> flags; 658 std::set<std::string> flags;
659 GetEnabledFlags(prefs, &flags); 659 GetEnabledFlags(prefs, &flags);
660 for (std::set<std::string>::iterator it = flags.begin(); it != flags.end(); 660 for (std::set<std::string>::iterator it = flags.begin(); it != flags.end();
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
831 } 831 }
832 832
833 const Experiment* GetExperiments(size_t* count) { 833 const Experiment* GetExperiments(size_t* count) {
834 *count = num_experiments; 834 *count = num_experiments;
835 return experiments; 835 return experiments;
836 } 836 }
837 837
838 } // namespace testing 838 } // namespace testing
839 839
840 } // namespace about_flags 840 } // namespace about_flags
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chrome_content_browser_client.cc » ('j') | chrome/browser/chrome_content_browser_client.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698