summaryrefslogtreecommitdiffstats
path: root/base
Commit message (Collapse)AuthorAgeFilesLines
* Don't make checkdeps ignore includes to directories that are brought in via ↵jam@chromium.org2012-04-271-0/+1
| | | | | | | | deps. Most of these are already listed in DEPS files, and it seems that we want to prevent includes on them just like normal directories that are in our tree (otherwise content can depend on native_client, for ex) Review URL: https://chromiumcodereview.appspot.com/10248005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@134296 0039d316-1c4b-4281-b951-d872f2087c98
* Add a suppression on ChromeOS for allowing wait.jam@chromium.org2012-04-271-16/+18
| | | | | | | | BUG=30124,125360 TBR=hashimoto Review URL: https://chromiumcodereview.appspot.com/10243007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@134282 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 134269 - Revert 134234 - Turn thread restrictions on for release ↵kevers@chromium.org2012-04-272-9/+19
| | | | | | | | | | | | | | | | | builds as well so that they're triggered in (default) try/commit jobs. I let them be compiled out only in official builds. Revert breaks ChromeOS Builder (dbg) Also update bug for net::FileStream usage. Review URL: https://chromiumcodereview.appspot.com/10238009 TBR=jam@chromium.org Review URL: https://chromiumcodereview.appspot.com/10256003 TBR=kevers@chromium.org Review URL: https://chromiumcodereview.appspot.com/10255004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@134270 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 134234 - Turn thread restrictions on for release builds as well so ↵kevers@chromium.org2012-04-272-19/+9
| | | | | | | | | | | | | | that they're triggered in (default) try/commit jobs. I let them be compiled out only in official builds. Breaks vmtest on builders chromiumOS x86 and amd64. Also update bug for net::FileStream usage. Review URL: https://chromiumcodereview.appspot.com/10238009 TBR=jam@chromium.org Review URL: https://chromiumcodereview.appspot.com/10256003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@134269 0039d316-1c4b-4281-b951-d872f2087c98
* Initialize Android OS path overrides for testingpeter@chromium.org2012-04-272-1/+11
| | | | | | | | | | | | | WebKit's TestWebKitAPI and webkit_unit_tests rely on paths on the phone to be overridden in order to run correctly. BUG= TEST= Review URL: http://codereview.chromium.org/10203014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@134265 0039d316-1c4b-4281-b951-d872f2087c98
* ScopedAllowWait for NativeBackendKWallet::InitWithBusbattre@chromium.org2012-04-271-1/+4
| | | | | | | | | | | | Add a ScopedAllowWait to prevend a DCHECK in NativeBackendKWallet::InitWithBus. BUG=125331 TEST=no TBR=mdm@chromium.org,jam@chromium.org Review URL: https://chromiumcodereview.appspot.com/10252003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@134263 0039d316-1c4b-4281-b951-d872f2087c98
* Turn thread restrictions on for release builds as well so that they're ↵jam@chromium.org2012-04-272-9/+17
| | | | | | | | | triggered in (default) try/commit jobs. I let them be compiled out only in official builds. Also update bug for net::FileStream usage. Review URL: https://chromiumcodereview.appspot.com/10238009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@134234 0039d316-1c4b-4281-b951-d872f2087c98
* Explicitly track the time source type in base/profiler/alternate_timer.hisherman@chromium.org2012-04-273-4/+20
| | | | | | | | | | | | | | | We were previously implicitly tracking the time source as either default or tcmalloc-based; but as we add more time sources (e.g. cpu time), we'll want to have explicit tracking for this. BUG=none TEST=none TBR=jar@chromium.org (Recommit of [ https://chromiumcodereview.appspot.com/10225017/ ]) Review URL: http://codereview.chromium.org/10248001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@134187 0039d316-1c4b-4281-b951-d872f2087c98
* [cros] Fix udevadm command line for camera presence detection.ivankr@chromium.org2012-04-262-14/+23
| | | | | | | | | | | | Also added an overload of GetAppOutput which takes argv directly instead of CommandLine for launching programs where specific order of argument matters (like udevadm). BUG=124845 TEST=Manual Review URL: http://codereview.chromium.org/10191019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@134149 0039d316-1c4b-4281-b951-d872f2087c98
* Add PathUtilsTest.nileshagrawal@chromium.org2012-04-263-10/+50
| | | | | | | | | | | | - This test invokes JNI calls and included only if gtest_target_type=shared_library. - Also set the application context to get these JNI calls working. BUG=125059 TEST= Review URL: http://codereview.chromium.org/10161032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@134144 0039d316-1c4b-4281-b951-d872f2087c98
* Add more allow-wait suppressions on cros.jam@chromium.org2012-04-261-0/+8
| | | | | | | TBR=brettw Review URL: https://chromiumcodereview.appspot.com/10198034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@134132 0039d316-1c4b-4281-b951-d872f2087c98
* fix cros compilejam@chromium.org2012-04-261-1/+1
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@134126 0039d316-1c4b-4281-b951-d872f2087c98
* Fix ChromeOS debug asserts after adding thread restrictions on blocking the ↵jam@chromium.org2012-04-261-1/+7
| | | | | | | | | UI/IO threads. TBR=brettw Review URL: https://chromiumcodereview.appspot.com/10230007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@134124 0039d316-1c4b-4281-b951-d872f2087c98
* Disallow UI/IO thread blocking on any other thread.jam@chromium.org2012-04-2611-3/+128
| | | | | | | By design, there's no ScopedAllowWait that is reachable by all code. From experience with ScopedAllowIO, it will be abused. So instead the existing callers (which should all be fixed other than two) are friends with ThreadRestrictions. Review URL: https://chromiumcodereview.appspot.com/10151009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@134114 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 134041 - Explicitly track the time source type in ↵dpapad@chromium.org2012-04-263-20/+4
| | | | | | | | | | | | | | | | | | | base/profiler/alternate_timer.h Caused Linux ChromiumOS Builder compile failure. We were previously implicitly tracking the time source as either default or tcmalloc-based; but as we add more time sources (e.g. cpu time), we'll want to have explicit tracking for this. BUG=none TEST=none Review URL: http://codereview.chromium.org/10225017 TBR=isherman@chromium.org Review URL: https://chromiumcodereview.appspot.com/10174038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@134042 0039d316-1c4b-4281-b951-d872f2087c98
* Explicitly track the time source type in base/profiler/alternate_timer.hisherman@chromium.org2012-04-263-4/+20
| | | | | | | | | | | | We were previously implicitly tracking the time source as either default or tcmalloc-based; but as we add more time sources (e.g. cpu time), we'll want to have explicit tracking for this. BUG=none TEST=none Review URL: http://codereview.chromium.org/10225017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@134041 0039d316-1c4b-4281-b951-d872f2087c98
* Add an enum MetroLaunchType which would indicate the reason chrome was ↵ananta@chromium.org2012-04-261-0/+21
| | | | | | | | | | | | launched into Windows 8 metro, i.e. via regular launch, search charm etc. BUG=118641 R=cpu Review URL: https://chromiumcodereview.appspot.com/10161037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@134019 0039d316-1c4b-4281-b951-d872f2087c98
* [UMA] Add performance profile data to UMA uploads.isherman@chromium.org2012-04-253-31/+23
| | | | | | | | | | | | | BUG=103480 TEST=unit_test --gtest_filter=MetricsLogTest.* TBR=jar@chromium.org (Re-commit of [ https://chromiumcodereview.appspot.com/9702015/ ]) Review URL: http://codereview.chromium.org/10224010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@134006 0039d316-1c4b-4281-b951-d872f2087c98
* Simplify ScheduleDelayedWork implementation on Macstuartmorgan@chromium.org2012-04-251-22/+2
| | | | | | | | | | | | Instead of round-tripping through Time::Exploded, which seems to be a legacy of the method having a different argument type, just calculate the new timer firing time directly from the difference in time ticks. BUG=None TEST=None Review URL: http://codereview.chromium.org/10227001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133916 0039d316-1c4b-4281-b951-d872f2087c98
* win: Fix another small language violation found by clang.thakis@chromium.org2012-04-251-2/+2
| | | | | | | | | | | | No functionality change. BUG=none TEST=none Review URL: http://codereview.chromium.org/10151010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133866 0039d316-1c4b-4281-b951-d872f2087c98
* Implement the skeleton of an android content shell.tedchoc@chromium.org2012-04-258-0/+181
| | | | | | | | | | | | | Many TODOs here that will allow a quicker distribution of work to get the remaining pieces upstreamed. BUG=118591 TEST= Review URL: http://codereview.chromium.org/10035034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133857 0039d316-1c4b-4281-b951-d872f2087c98
* Add TaskRunner wrapper for WorkerPool.mattm@chromium.org2012-04-254-1/+123
| | | | | | | | | | BUG=114329 TEST=none Review URL: http://codereview.chromium.org/10220001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133855 0039d316-1c4b-4281-b951-d872f2087c98
* Convert the session restore ui_tests to browser_tests. I renabled the ↵jam@chromium.org2012-04-252-24/+11
| | | | | | | | | | | disabled tests; hopefully they're now more flaky. I found a simple way of launching a browser_test binary as a regular chrome binary which is needed for the app test case. This means I can undo r133560 which I've done here. BUG=121574,29110,52022 Review URL: https://chromiumcodereview.appspot.com/10202005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133852 0039d316-1c4b-4281-b951-d872f2087c98
* Implemented a "Last Updated" field for the about page of Chrome OS.khorimoto@chromium.org2012-04-252-4/+14
| | | | | | | | | | BUG=117517 TEST= Review URL: http://codereview.chromium.org/10038034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133840 0039d316-1c4b-4281-b951-d872f2087c98
* Add an AddExtension() method in FilePathrdevlin.cronin@chromium.org2012-04-253-22/+73
| | | | | | | | | | | | | | | | This provides an AddExtension() method in FilePath, which will append an extension to the FilePath. This provides clearer, more deliberate functionality than AppendASCII(), and allows us to add extensions without using ReplaceExtension, which will not work on files which already have extension (or appear to, e.g. temp files). BUG=NONE TEST=FilePathTest.AddExtension (added), previous FilePathTests. Review URL: http://codereview.chromium.org/10067002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133839 0039d316-1c4b-4281-b951-d872f2087c98
* RefCounted types should not have public destructors, base/ editionrsleevi@chromium.org2012-04-2512-32/+62
| | | | | | | | | | BUG=123295 TEST=none Review URL: http://codereview.chromium.org/10065037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133825 0039d316-1c4b-4281-b951-d872f2087c98
* Adding new JNI util methods that deal with Java string arrays and use string16.jcivelli@chromium.org2012-04-242-0/+36
| | | | | | | | | | BUG=None TEST=None Review URL: http://codereview.chromium.org/10216001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133809 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 133773 - [UMA] Add performance profile data to UMA uploads.isherman@chromium.org2012-04-243-23/+31
| | | | | | | | | | | | | BUG=103480 TEST=unit_test --gtest_filter=MetricsLogTest.* Review URL: http://codereview.chromium.org/9702015 TBR=isherman@chromium.org Review URL: https://chromiumcodereview.appspot.com/10169039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133779 0039d316-1c4b-4281-b951-d872f2087c98
* [UMA] Add performance profile data to UMA uploads.isherman@chromium.org2012-04-243-31/+23
| | | | | | | | | | BUG=103480 TEST=unit_test --gtest_filter=MetricsLogTest.* Review URL: http://codereview.chromium.org/9702015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133773 0039d316-1c4b-4281-b951-d872f2087c98
* win: Fix a small language violation.thakis@chromium.org2012-04-241-2/+1
| | | | | | | | | | | No functionality change. Found by clang. BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/10155029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133703 0039d316-1c4b-4281-b951-d872f2087c98
* Move RefCountedStaticMemory to base namespacesimon.hong81@gmail.com2012-04-242-4/+4
| | | | | | | | | BUG=none TEST=compiles Review URL: http://codereview.chromium.org/10165020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133702 0039d316-1c4b-4281-b951-d872f2087c98
* Update net/android/network_library.cc with fresher code.yfriedman@chromium.org2012-04-241-0/+22
| | | | | | | | | | Also adds it to the build to ensure it doesn't suffer bit-rot again, and include Java-side component. Review URL: http://codereview.chromium.org/10171009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133591 0039d316-1c4b-4281-b951-d872f2087c98
* Add a "--silent" flag to our test suite to disable gtest output. This clears ↵jam@chromium.org2012-04-232-11/+25
| | | | | | | | | up the test logs when running the ChromeMain browsertests. BUG=124645 Review URL: https://chromiumcodereview.appspot.com/10199007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133560 0039d316-1c4b-4281-b951-d872f2087c98
* Extension alarms now persist in Preferences.mpcomplete@chromium.org2012-04-231-0/+1
| | | | | | | | | BUG=122815 TEST=no Review URL: https://chromiumcodereview.appspot.com/10152008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133543 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup: IWYU for base/file_util_proxy.h.thestig@chromium.org2012-04-232-8/+10
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/10115017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133520 0039d316-1c4b-4281-b951-d872f2087c98
* Add ipc_channel_nacl to the untrusted build and fix all compile/link errors.bbudge@chromium.org2012-04-231-0/+4
| | | | | | | | | ppapi_proxy_untrusted.gyp should now build with a single link error for main. BUG=116317 TEST=builds with a single link error for main(). Review URL: https://chromiumcodereview.appspot.com/10167024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133519 0039d316-1c4b-4281-b951-d872f2087c98
* mmap returns -1 on failure and in the posix implementation of SharedMemory, ↵raymes@chromium.org2012-04-231-3/+4
| | | | | | | | | | | | | | this was setting memory_ to -1. However the interface for SharedMemory specifies that memory_ should be NULL if it is unmapped. Furthermore there was DCHECK included to check the success of mmap, but I feel this is incorrect because we are returning the success (e.g. other platform implementations don't do this). The caller can DCHECK if they need. We could change this to a LOG call. BUG=None TEST=out/Debug/base_unittests Review URL: http://codereview.chromium.org/10174007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133516 0039d316-1c4b-4281-b951-d872f2087c98
* Convert MessageLoopProxy to TaskRunner in FileUtilProxykinuko@chromium.org2012-04-234-61/+469
| | | | | | | | | | | | Also adding unittests to FileUtilProxy. BUG=123558,77454 TEST=FileUtilProxyTest.* Review URL: http://codereview.chromium.org/10095028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133484 0039d316-1c4b-4281-b951-d872f2087c98
* Add and implement API to associate Google experiment IDs with FieldTrials.stevet@chromium.org2012-04-232-0/+14
| | | | | | | | | | | | | | This includes unit tests for the API, but no uses yet. This change also involves exposing a new MakeGroupNameId static helper in FieldTrial to assist with the usage of this new API. BUG=121988 TEST=Ensure that unit_tests GoogleExperimentsTest.* pass. Review URL: http://codereview.chromium.org/10165014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133470 0039d316-1c4b-4281-b951-d872f2087c98
* Set svn:executable bit on scripts that are executable.maruel@chromium.org2012-04-231-1/+1
| | | | | | | | | | | | | | | This file is committed independently because it cannot be tested on the try server. Original review at https://chromiumcodereview.appspot.com/10165021/ TBR=mark@chromium.org BUG= TEST= Review URL: https://chromiumcodereview.appspot.com/10169027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133434 0039d316-1c4b-4281-b951-d872f2087c98
* Change --variable argument, must now be spaced, -V foo bar, instead of -V ↵maruel@chromium.org2012-04-231-2/+2
| | | | | | | | | | | | | | | | | | foo=bar. Otherwise, path quoting gets in the way on windows in a way that is very hard to fix, as the 'bar' value could have double-quote in it, resulting in something like foo="bar". R=nsylvain@chromium.org R=mark@chromium.org R=rsleevi@chromium.org BUG= TEST= Review URL: http://codereview.chromium.org/10139020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133398 0039d316-1c4b-4281-b951-d872f2087c98
* Set svn:executable bit on scripts that are executable.maruel@chromium.org2012-04-212-4/+2
| | | | | | | | | | | R=jrg@chromium.org BUG= TEST= Review URL: http://codereview.chromium.org/10170015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133352 0039d316-1c4b-4281-b951-d872f2087c98
* Add BASE_EXPORT to base::mac::ExecuteWithPrivilegesAndGetPIDlambroslambrou@chromium.org2012-04-211-0/+1
| | | | | | Review URL: http://codereview.chromium.org/10144010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133319 0039d316-1c4b-4281-b951-d872f2087c98
* Final(?) eradications of GDK / GTK from the GPU process.cevans@chromium.org2012-04-201-1/+7
| | | | | | | TBR=darin Review URL: https://chromiumcodereview.appspot.com/10078018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133285 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 133212 - Add and implement API to associate Google experiment IDs ↵groby@chromium.org2012-04-202-14/+0
| | | | | | | | | | | | | | | | | | | | with FieldTrials. Reverted temporarily due to memory leak. This includes unit tests for the API, but no uses yet. This change also involves exposing a new MakeGroupNameId static helper in FieldTrial to assist with the usage of this new API. BUG=121988 TEST=Ensure that unit_tests GoogleExperimentsTest.* pass. Review URL: http://codereview.chromium.org/9965086 TBR=stevet@chromium.org Review URL: https://chromiumcodereview.appspot.com/10167015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133220 0039d316-1c4b-4281-b951-d872f2087c98
* Add and implement API to associate Google experiment IDs with FieldTrials.stevet@chromium.org2012-04-202-0/+14
| | | | | | | | | | | | | This includes unit tests for the API, but no uses yet. This change also involves exposing a new MakeGroupNameId static helper in FieldTrial to assist with the usage of this new API. BUG=121988 TEST=Ensure that unit_tests GoogleExperimentsTest.* pass. Review URL: http://codereview.chromium.org/9965086 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133212 0039d316-1c4b-4281-b951-d872f2087c98
* Move RefCountedBytes Class to base namespace.simon.hong81@gmail.com2012-04-202-6/+6
| | | | | | | | | BUG=none TEST=compiles and tests pass on trybots Review URL: http://codereview.chromium.org/10083022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133170 0039d316-1c4b-4281-b951-d872f2087c98
* Add NetworkChangeNotifier for Android.yfriedman@chromium.org2012-04-202-0/+84
| | | | | | | | | | | | The native notifier spawns a Java-side notifier that registers for notifications from Android's ConnectivityManager. As for the lack of tests, they're written at a higher-level downstream. Review URL: http://codereview.chromium.org/10073024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133142 0039d316-1c4b-4281-b951-d872f2087c98
* Make sure that base::MessagePumpForUI from different modules are isolated ↵alexeypa@chromium.org2012-04-204-29/+78
| | | | | | | | | | | from each other and add protection from shatter attacks by placing |this| pointer to the used data associated with the message-only window (instead of blindly trusting the value of WPARAM). BUG=124091 Review URL: http://codereview.chromium.org/10134001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133134 0039d316-1c4b-4281-b951-d872f2087c98
* apk-based test runner work for android. 2 unit test bundles converted over ↵jrg@chromium.org2012-04-193-8/+75
| | | | | | | | | | | | | | | | | | | | | | | | (ipc, base). OFF by default; enable with a gyp var. E.g. GYP_DEFINES="$GYP_DEFINES gtest_target_type=shared_library" android_gyp Some useful commands: adb uninstall org.chromium.native_test adb install -r out/Release/base_unittests_apk/ChromeNativeTests-debug.apk adb shell am start -n org.chromium.native_test/org.chromium.native_test.ChromeNativeTestActivity For the moment, all apks can be built simultaneously but use the same activity name. Thus you cannot have more than one installed at the same time. BUG=None TEST= Review URL: http://codereview.chromium.org/10051021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133053 0039d316-1c4b-4281-b951-d872f2087c98