summaryrefslogtreecommitdiffstats
path: root/base
Commit message (Collapse)AuthorAgeFilesLines
* base: Remove an unused member from MessagePumpLibevent::FileDescriptorWatchersatorux@chromium.org2012-06-152-8/+4
| | | | | | | | | | | | MessagePumpLibevent::FileDescriptorWatcher::is_persistent_ is not used at all. BUG=none TEST=base_unittests Review URL: https://chromiumcodereview.appspot.com/10534169 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142351 0039d316-1c4b-4281-b951-d872f2087c98
* android content shell bringup.jrg@chromium.org2012-06-154-6/+22
| | | | | | | | | | | | | Starting classes for content view, content view client. Includes some relevant deps needed to build or pass a sanity check. BUG= TEST= Review URL: https://chromiumcodereview.appspot.com/10536066 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142309 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a compilation error caused by some variables being unused under ASan on Mac.glider@chromium.org2012-06-141-3/+4
| | | | | | Review URL: https://chromiumcodereview.appspot.com/10536173 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142170 0039d316-1c4b-4281-b951-d872f2087c98
* Move guid generation from chrome/common/ to base/.marja@chromium.org2012-06-147-0/+178
| | | | | | | | | | | | It will be needed in webkit/dom_storage/. BUG=NONE TEST=Existing tests. Review URL: https://chromiumcodereview.appspot.com/10540003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142142 0039d316-1c4b-4281-b951-d872f2087c98
* Removemark@chromium.org2012-06-141-3/+0
| | | | | | | | | | | | | | | | | -F$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework/Frameworks It wasn't ever correct to compile or link with this, and it just encourages people to do stupid things that aren't guaranteed to work at runtime in future OS releases or with future SDKs. Just #include <ApplicationServices/ApplicationServices.h> or link against ApplicationServices.framework by adding $(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework to your 'link_settings': {'libraries': []} section. The WebKit portion was fixed at https://bugs.webkit.org/show_bug.cgi?id=88569 . Review URL: https://chromiumcodereview.appspot.com/10535059 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142137 0039d316-1c4b-4281-b951-d872f2087c98
* more trace events for windows messagesjbates@chromium.org2012-06-141-0/+3
| | | | | | | | | BUG=131129 Review URL: https://chromiumcodereview.appspot.com/10538045 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142079 0039d316-1c4b-4281-b951-d872f2087c98
* Fix the error package name for SandboxedProcessServiceyongsheng.zhu@intel.com2012-06-141-1/+1
| | | | | | | | | | | | 'browser' -> 'app' BUG= TEST= Review URL: https://chromiumcodereview.appspot.com/10546119 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142073 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor chrome.alarms interface to support absolute alarm deadlines.jyasskin@chromium.org2012-06-142-6/+6
| | | | | | | | | | | | BUG=122817 TEST=Created an extension with absolute delays under 5 minutes away, and watched that they didn't fire for 5 minutes. Review URL: https://chromiumcodereview.appspot.com/10545104 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142037 0039d316-1c4b-4281-b951-d872f2087c98
* Fix the ant warning of 'includeantruntime was not set' in android buildshouqun.liu@intel.com2012-06-131-1/+1
| | | | | | | | | | BUG= TEST= Review URL: https://chromiumcodereview.appspot.com/10543107 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142029 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup: Consolidate declarations of XDG variables.thestig@chromium.org2012-06-132-2/+18
| | | | | | | | | BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/10548019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142014 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup: Move some const char definitions to the .cc file. (try 2)thestig@chromium.org2012-06-132-8/+15
| | | | | | | | | BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/10535141 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142013 0039d316-1c4b-4281-b951-d872f2087c98
* Make Callback.Reset safe against deleting itself.mattm@chromium.org2012-06-132-1/+35
| | | | | | | | | | BUG=99159 TEST=CallbackTest.ResetRefCountedOwnerOfCallback Review URL: https://chromiumcodereview.appspot.com/10388060 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142011 0039d316-1c4b-4281-b951-d872f2087c98
* Update comments on how to create a field trial in field_trial.h.asvitkine@chromium.org2012-06-131-2/+3
| | | | | | | | | BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/10546121 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141826 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 141810 - Cleanup: Move some const char definitions to the .cc file.cpu@chromium.org2012-06-132-12/+6
| | | | | | | | | | | | BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/10539099 TBR=thestig@chromium.org Review URL: https://chromiumcodereview.appspot.com/10543130 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141823 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup: Move some const char definitions to the .cc file.thestig@chromium.org2012-06-132-6/+12
| | | | | | | | | BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/10539099 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141810 0039d316-1c4b-4281-b951-d872f2087c98
* Base: Enable the scoped handle verifier for Win7.rvargas@google.com2012-06-121-6/+0
| | | | | | | | BUG=131699 TEST=none Review URL: https://chromiumcodereview.appspot.com/10541121 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141783 0039d316-1c4b-4281-b951-d872f2087c98
* Unrevert r141537: Add extensions::StateStore and use that instead ofmpcomplete@chromium.org2012-06-122-3/+26
| | | | | | | | | | | | | | | | | | | | ExtensionPrefs for persisting alarm state to disk. More to come: - context menus - omnibox - declarative webRequest TBR=brettw BUG=123366 TEST=extension alarms are still remembered after chrome restart Change since last time: Fall back to a FailingValueStore if ValueStoreFrontend can't open the database. Review URL: https://chromiumcodereview.appspot.com/10545128 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141780 0039d316-1c4b-4281-b951-d872f2087c98
* Fix ProcessUtilTests for android.nileshagrawal@chromium.org2012-06-121-16/+38
| | | | | | | | | | | | | On Android, files have to be created in the application directory. BUG=125059 TEST= Review URL: https://chromiumcodereview.appspot.com/10543118 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141776 0039d316-1c4b-4281-b951-d872f2087c98
* Remove duplicate CPU detection code; use base::CPU instead.dalecurtis@chromium.org2012-06-121-8/+8
| | | | | | | | | | BUG=none TEST=media_unittests. Review URL: https://chromiumcodereview.appspot.com/10537082 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141627 0039d316-1c4b-4281-b951-d872f2087c98
* Add files and exclusions needed for NaCl IPC proxy to base_untrusted target.bbudge@chromium.org2012-06-122-2/+33
| | | | | | | | | BUG=116317 TEST=compiles Review URL: https://chromiumcodereview.appspot.com/10544095 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141613 0039d316-1c4b-4281-b951-d872f2087c98
* replace string16 with StringPiece16 in ConvertUTF16ToJavaString()james.wei@intel.com2012-06-122-8/+11
| | | | | | | | | | BUG= TEST= Review URL: https://chromiumcodereview.appspot.com/10532081 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141607 0039d316-1c4b-4281-b951-d872f2087c98
* Revert r141537: Add extensions::StateStore and use that instead ofmpcomplete@chromium.org2012-06-112-26/+3
| | | | | | | | | | | | | | | | | | | ExtensionPrefs for persisting alarm state to disk. More to come: - context menus - omnibox - declarative webRequest TBR=yoz@chromium.org BUG=123366 TEST=extension alarms are still remembered after chrome restart Reason for revert: breaks tests on Win7. Review URL: https://chromiumcodereview.appspot.com/10542114 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141564 0039d316-1c4b-4281-b951-d872f2087c98
* Add extensions::StateStore and use that instead of ExtensionPrefs formpcomplete@chromium.org2012-06-112-3/+26
| | | | | | | | | | | | | | | | persisting alarm state to disk. More to come: - context menus - omnibox - declarative webRequest BUG=123366 TEST=extension alarms are still remembered after chrome restart Review URL: https://chromiumcodereview.appspot.com/10543081 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141537 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 138011 - Base: Add power requirements to the System monitor.rvargas@google.com2012-06-115-238/+3
| | | | | | | | | | | | | | | | | The only thing we need in the short term is CPU_REQUIRED, and that part is implemented for all platforms (as far as it makes sense). The other options are implemented for Windows, but given that currently there's no user, I expect the implementation for other platforms to be written when there's an actual need for it. BUG=126591 TEST=base_unittests TBR=brettw Review URL: https://chromiumcodereview.appspot.com/10546101 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141497 0039d316-1c4b-4281-b951-d872f2087c98
* Remove duplicate call to InitAndroidTest.nileshagrawal@chromium.org2012-06-112-3/+10
| | | | | | | | | | | | The method is called from test_suite.cc. Also moving methods in test_support_android inside a namespace. BUG=125059 TEST=None Review URL: https://chromiumcodereview.appspot.com/10538065 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141473 0039d316-1c4b-4281-b951-d872f2087c98
* Fix comment typo.bryeung@chromium.org2012-06-091-2/+2
| | | | | | | | | | TEST=none BUG=none Review URL: https://chromiumcodereview.appspot.com/10541081 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141342 0039d316-1c4b-4281-b951-d872f2087c98
* PPAPI/NaCl: Remove call of system() from NaCl builddmichael@chromium.org2012-06-091-1/+1
| | | | | | | | | | | | | The system calls used by system() aren't available in NaCl and cause a link error in the NaCl IPC proxy build. BUG=116317 TEST= R=brettw Review URL: https://chromiumcodereview.appspot.com/10534078 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141338 0039d316-1c4b-4281-b951-d872f2087c98
* Run ProcessUtil tests on Android.nileshagrawal@chromium.org2012-06-091-1/+0
| | | | | | | | | | | | | TBRing as it is a simple gyp change. TBR=mark@chromium.org BUG=125059 TEST= Review URL: https://chromiumcodereview.appspot.com/10544080 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141337 0039d316-1c4b-4281-b951-d872f2087c98
* Make the other Java modules debuggablehaitao.feng@intel.com2012-06-081-1/+1
| | | | | | | | | | BUG= TEST= Review URL: https://chromiumcodereview.appspot.com/10541068 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141327 0039d316-1c4b-4281-b951-d872f2087c98
* Add Javascript time methods to base::Time.jyasskin@chromium.org2012-06-083-0/+33
| | | | | | Review URL: https://chromiumcodereview.appspot.com/10536061 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141317 0039d316-1c4b-4281-b951-d872f2087c98
* Try not to inline tcmalloc::Abort() so we can find it in stack trace.kaiwang@chromium.org2012-06-081-1/+3
| | | | | | Review URL: https://chromiumcodereview.appspot.com/10535049 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141295 0039d316-1c4b-4281-b951-d872f2087c98
* Adding base_untrusted.bradnelson@google.com2012-06-083-87/+126
| | | | | | | | | | | | | Adding a nacl version of base. BUG=None TEST=None R=bbudge@chromium.org Review URL: https://chromiumcodereview.appspot.com/10389196 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141144 0039d316-1c4b-4281-b951-d872f2087c98
* Make ScopedGetDC() CHECK fail if GetDC(NULL) returns NULL.pkasting@chromium.org2012-06-071-3/+10
| | | | | | | | | | Use scoping objects more in the omnibox code. BUG=110105 TEST=none Review URL: https://chromiumcodereview.appspot.com/10545045 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141087 0039d316-1c4b-4281-b951-d872f2087c98
* Moving all targets from base.gypi to base.gyp.bradnelson@google.com2012-06-072-362/+358
| | | | | | | | | | | | | | | | | | | | | | | Originally base.gypi was intended to sequester the syntactic trick used to instantiate base as both regular Win32 base and base_nacl_win64. The intention was to keep all the magic in one place. It's unclear if this is a real advantage. In a coming CL we will want to instantiate base a third time as a nacl module. Rather than do that in base.gyp (bringing in a nacl dependency), we will instead add base_untrusted.gyp in this directory. Repositioning everything outside target_defaults in base.gypi will allow us to include it in two places. All targets and conditional targets are moved to base.gyp. BUG=None TEST=builds R=brettw@chromium.org Review URL: https://chromiumcodereview.appspot.com/10532040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141047 0039d316-1c4b-4281-b951-d872f2087c98
* Base: Add another pc to the handle verifier to get to thervargas@chromium.org2012-06-072-13/+33
| | | | | | | | | | | | | | actual caller. I was hoping for an inlining that didn't happened. BUG=127931 TEST=none original review: https://chromiumcodereview.appspot.com/10537041 TBR=willchan Review URL: https://chromiumcodereview.appspot.com/10541044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140962 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 140899 - Base: Add another pc to the handle verifier to get to thervargas@google.com2012-06-072-29/+13
| | | | | | | | | | | | | actual caller. I was hoping for an inlining that didn't happened. BUG=127931 TEST=none Review URL: https://chromiumcodereview.appspot.com/10537041 TBR=rvargas@google.com Review URL: https://chromiumcodereview.appspot.com/10539033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140907 0039d316-1c4b-4281-b951-d872f2087c98
* Base: Add another pc to the handle verifier to get to thervargas@google.com2012-06-072-13/+29
| | | | | | | | | | actual caller. I was hoping for an inlining that didn't happened. BUG=127931 TEST=none Review URL: https://chromiumcodereview.appspot.com/10537041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140899 0039d316-1c4b-4281-b951-d872f2087c98
* Add shared memory cleanup before/after all testsjar@chromium.org2012-06-061-2/+5
| | | | | | | | | | | | | | | Cleanup was already in place, but was missing for StatsRate and StatsCounterTimer. This should *hopefully* remove apparent flakiness seen when running StatsRate alone in a test bot. bug=131024 r=asvitkine Review URL: https://chromiumcodereview.appspot.com/10538027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140830 0039d316-1c4b-4281-b951-d872f2087c98
* Upstream Android proxy config service.pliard@chromium.org2012-06-061-1/+0
| | | | | | | | | | | | | | This change adds in an Android-specific system proxy provider called ProxyConfigServiceAndroid. This is created as required from C++. In turn ProxyConfigServiceAndroid creates a java object which provides the link to Android's proxy changed broadcast, as well as the functionality to read the Java system properties where the current proxy settings are located. Review URL: https://chromiumcodereview.appspot.com/10206014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140748 0039d316-1c4b-4281-b951-d872f2087c98
* WebKit will start using NaN for null/invalid modificationTimekinuko@chromium.org2012-06-061-2/+14
| | | | | | | | | | | | | | Per discussion on webkit bugzilla WebKit will start using NaN for null/invalidmodificationTime (instead of 0.0, our conventional null time value) https://bugs.webkit.org/show_bug.cgi?id=87709#c10 https://bugs.webkit.org/show_bug.cgi?id=87826 BUG=none TEST=existing tests should pass Review URL: https://chromiumcodereview.appspot.com/10447110 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140710 0039d316-1c4b-4281-b951-d872f2087c98
* Implement SpawnDebuggerOnProcess for POSIX.jyasskin@chromium.org2012-06-061-1/+12
| | | | | | | | | | | | This launches a gdb in an xterm. It may or may not work on Mac. TEST=On Linux, added a call in a utility process, and watched an xterm come up with a debugger at that point. Review URL: https://chromiumcodereview.appspot.com/10517007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140679 0039d316-1c4b-4281-b951-d872f2087c98
* win: Fix lock acquisition bug.thakis@chromium.org2012-06-051-2/+2
| | | | | | | | | | | Found by clang. BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/10536013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140622 0039d316-1c4b-4281-b951-d872f2087c98
* Linux: bump the setuid sandbox API numberjln@chromium.org2012-06-051-1/+1
| | | | | | | | | | | | | | | | | With this change, the setuid sandbox and the Zygote will start complaining if they expect different API versions. Users will get warning messages if their setuid sandbox is too old and be referred to: https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment BUG= TEST= Review URL: https://chromiumcodereview.appspot.com/10536009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140613 0039d316-1c4b-4281-b951-d872f2087c98
* Fixing gcc 4.7 building problems.shenhan@google.com2012-06-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | a) - gcc-4.7 improved the implicit headers that it includes. with <4.7, the gthr-default.h file always pulls in unistd.h. with >=4.7, they avoided that include when possible. so code that isn't including unistd.h itself but needs it now breaks. b) - narrowing conversion in initiliazation list now raises an 'ill-formed conversion' warning, which causes error when -Werror is given. [THIS PART IS NOW REVERTED IN THE PATCH} c) - included patches from pastebin - http://pastebin.com/raw.php?i=p3UKs7Cg Note - this may not be fixing all the gcc 4.7 build problems for all parts, but rather than submitting one big-fix-for-all CL, we'd better do it incrementally (given that all the modification is reasonable and minor) so that at least some parts get a successful gcc 4.7 build. BUG=None TEST=Built successfully using GCC-4.7 under chromium chroot Review URL: https://chromiumcodereview.appspot.com/10451068 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140470 0039d316-1c4b-4281-b951-d872f2087c98
* Setuid sandbox API versioningjln@chromium.org2012-06-051-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We introduce API versioning to the setuid sandbox and issue warnings when the versions Chrome and the Sandbox expect are different. 1. The Zygote launcher in the browser will export the API version it expects to the environment. 2. The setuid sandbox will match its own version with the one in the environment. 3. Afterwards, it will export the API it provides to the environment for the sandboxed process. 4. The Zygote (the sandboxed process) will in turn check for the API number. The double check is needed because a version of the browser or of the setuid sandbox that does check for API could co-exist with a version that does not. The various utilities that are part of the setuid sandbox are not versioned because they have callers that are external to Chrome (in ChromeOS). When environment variables are not found, we assume version 0. Since the API is for now set to 0, this change will not produce any warning at the moment. BUG=None TEST=None Review URL: https://chromiumcodereview.appspot.com/10492006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140456 0039d316-1c4b-4281-b951-d872f2087c98
* Use ScopedVector in RenderTextWin.asvitkine@chromium.org2012-06-041-0/+5
| | | | | | | | | | | Also, add front() and back() functions to ScopedVector. BUG=none TEST=existing unit tests Review URL: https://chromiumcodereview.appspot.com/10519013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140423 0039d316-1c4b-4281-b951-d872f2087c98
* Reland 139885 - Enable the handle verifier.rvargas@google.com2012-06-041-1/+1
| | | | | | | | | | | | | BUG=127931 TEST=none TBR=willchan, wez, abodenha Review URL: https://chromiumcodereview.appspot.com/10441124 TBR=rvargas@google.com Review URL: https://chromiumcodereview.appspot.com/10516004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140417 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup: Remove unused parameter in base::nix::GetXDGUserDirectory(). Make ↵thestig@chromium.org2012-06-042-9/+15
| | | | | | | | | | sure base::nix::GetXDG* returns FilePaths with the trailing separators stripped. BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/10499006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140413 0039d316-1c4b-4281-b951-d872f2087c98
* Strip trailing path separators from XDG util results.vandebo@chromium.org2012-06-041-3/+3
| | | | | | | | | | TEST=NONE BUG=NONE Review URL: https://chromiumcodereview.appspot.com/10496007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140398 0039d316-1c4b-4281-b951-d872f2087c98
* Disable StatsTableTest.StatsRatecsharp@chromium.org2012-06-041-1/+2
| | | | | | | | | | | | | It fails on all platforms when run by itself. R=maruel@chromium.org,jar@chromium.org BUG=131024 TEST= Review URL: https://chromiumcodereview.appspot.com/10511013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140394 0039d316-1c4b-4281-b951-d872f2087c98