summaryrefslogtreecommitdiffstats
path: root/base
Commit message (Collapse)AuthorAgeFilesLines
* Replace FilePath with base::FilePath.brettw@chromium.org2013-02-1721-106/+129
| | | | | | | | This is im preparation for removing the 'using" in file_path.h Review URL: https://codereview.chromium.org/12286020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183021 0039d316-1c4b-4281-b951-d872f2087c98
* Make a new TRACE macro that is slower but uses less memorygman@chromium.org2013-02-162-0/+74
| | | | | | | | | | | | | | | | | | | | | | | The current TRACE macros are designed for speed but it means they generate lots of code. I added a TRACE_EVENT_BINARY_EFFICENTx for those cases where memory is more important the speed. The issue here is I'm auto generating traces. The normal TRACE_EVENT0 ended up adding 90k+ to the release build. This new macro does not. This won't effect perf because these macros used through a wrapper that only gets used when certain command line flags are passed in. In other words the code that uses these macros is not called without the command line flags. BUG=176383 Review URL: https://chromiumcodereview.appspot.com/12278018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182993 0039d316-1c4b-4281-b951-d872f2087c98
* This fixes the overflows identified in the parsingepenner@chromium.org2013-02-162-15/+51
| | | | | | | | | | | | | function, and adds the dalvik-heap-limit. BUG=176201 NOTRY=true No try since it has passed many times and is taking days in the CQ. Review URL: https://chromiumcodereview.appspot.com/12223064 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182986 0039d316-1c4b-4281-b951-d872f2087c98
* Remove PrefServiceBase, since everyone can now depend directly on PrefService.joi@chromium.org2013-02-1611-262/+184
| | | | | | | | | | TBR=ben@chromium.org BUG=155525 Review URL: https://chromiumcodereview.appspot.com/12252008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182918 0039d316-1c4b-4281-b951-d872f2087c98
* Make base compile with no "using base::FilePath".brettw@chromium.org2013-02-169-16/+30
| | | | | | | | | | | | For base .cc files not using the base namespace, I added a using since theses files should be moved to the base namespace, and then explicit qualification will no longer be necessary. Original review URL: https://codereview.chromium.org/12226121 (reland of r182040). Review URL: https://codereview.chromium.org/12278014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182916 0039d316-1c4b-4281-b951-d872f2087c98
* Change call_new_handler to be non extern C; not called outside this code and ↵wfh@chromium.org2013-02-151-4/+5
| | | | | | | | | | | it's causing issues with the linker on Win-64 BUG=166496 Review URL: https://chromiumcodereview.appspot.com/12256047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182788 0039d316-1c4b-4281-b951-d872f2087c98
* Adding raw tracing to trace framework.dsinclair@chromium.org2013-02-155-78/+295
| | | | | | | | | | | | With some types of tracing you do not want to use the system time as the recorded event time. In those cases, we want to provide a timestamp that will be used to display the event. In a similar vein, the thread which is outputting the event may not be the thread where the event happened so we also allow an explicit thread_id to be provided. BUG=111509 Review URL: https://chromiumcodereview.appspot.com/11366109 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182768 0039d316-1c4b-4281-b951-d872f2087c98
* linux: Both gtk and the aura port should set the icon theme name.erg@chromium.org2013-02-152-34/+10
| | | | | | | | BUG=176103 Review URL: https://codereview.chromium.org/12230026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182748 0039d316-1c4b-4281-b951-d872f2087c98
* Support JellyBean MR2 style of systracewangxianzhu@chromium.org2013-02-152-7/+19
| | | | | | | | | | | | | | | | | | JB MR2 systrace.py combined the steps of trace tags settings and trace collection into one step, so we need to react to the change of trace tags settings to enable/disable atrace in chrome. The change also benefit pre-JB-MR2 systems that we don't need to restart chrome after changing the trace tags settings in Developer options. However, we still need "adb shell stop; adb shell start" if we set the trace tags using pre-JB-MR2 systrace.py. BUG=173954 Review URL: https://chromiumcodereview.appspot.com/12221047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182739 0039d316-1c4b-4281-b951-d872f2087c98
* Base: account for calloc aborting in security unittestsjln@chromium.org2013-02-151-32/+47
| | | | | | | | | | | | | | On Linux, when not using tcmalloc, we still have a small wrapper that aborts when allocation functions OOM. In that configuration, we now We consider it a successful detection of an overflow condition if the process aborts. BUG=175500 Review URL: https://chromiumcodereview.appspot.com/12220107 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182628 0039d316-1c4b-4281-b951-d872f2087c98
* Add unit tests for base::GetSystemMemoryInfojamescook@chromium.org2013-02-141-0/+34
| | | | | | | | | BUG=176044 TEST=base_unittests ProcessUtilTest Review URL: https://codereview.chromium.org/12257013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182540 0039d316-1c4b-4281-b951-d872f2087c98
* Moving last generic Prefs implementation files to base/prefs/.joi@chromium.org2013-02-147-2/+803
| | | | | | | | | | | | | | This completes componentization of Prefs, although there are some remaining TODOs that were created during componentization and interface improvement that still need to be tackled. TBR=ben@chromium.org BUG=155525 Review URL: https://chromiumcodereview.appspot.com/12253004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182485 0039d316-1c4b-4281-b951-d872f2087c98
* Fixes to prep_libc.py to support correct stripping of x64 libcmt on x64 targetwfh@chromium.org2013-02-141-0/+2
| | | | | | | | BUG=166496 Review URL: https://chromiumcodereview.appspot.com/12258025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182457 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 182367rvargas@google.com2013-02-141-1/+1
| | | | | | | | | | | | | | | > Base: Disable the scoped handle verifier. > > This cl is intended for the beta branch. > > BUG=176188 > TEST=none > Review URL: https://codereview.chromium.org/12230034 TBR=rvargas@google.com Review URL: https://codereview.chromium.org/12212181 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182372 0039d316-1c4b-4281-b951-d872f2087c98
* Do a giant svn propset svn:eol-style LF on .cc and .h files thatjln@chromium.org2013-02-141-77/+77
| | | | | | | lack this property. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182368 0039d316-1c4b-4281-b951-d872f2087c98
* Base: Disable the scoped handle verifier.rvargas@google.com2013-02-141-1/+1
| | | | | | | | | | This cl is intended for the beta branch. BUG=176188 TEST=none Review URL: https://codereview.chromium.org/12230034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182367 0039d316-1c4b-4281-b951-d872f2087c98
* Fix compile breakage when using stream operators when NOTIMPLEMENTED_POLICY=5.miu@chromium.org2013-02-131-3/+5
| | | | | | | | | | | | | | | In logging.h, the NOTIMPLEMENTED_POLICY macro defines the behavior of the NOTIMPLEMENTED() macro. For case 5 (log only once per call-site), code that uses stream output operators would fail to compile. For example, in ui/aura/root_window_host_linux.cc:747: NOTIMPLEMENTED() << "Unsupported bits-per-pixel " << image->bits_per_pixel; The solution is to add EAT_STREAM_PARAMETERS to the end of the definition in base/logging.h. This will log call sites as "not implemented" but will not log the additional custom messages. TEST=Compiled chrome with compiler define set to NOTIMPLEMENTED_POLICY=5 and ran to confirm desired NOTIMPLEMENTED() behaviors. Review URL: https://chromiumcodereview.appspot.com/12221152 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182167 0039d316-1c4b-4281-b951-d872f2087c98
* Temporarily disable failing Win64 tests relying on pe_imagejschuh@chromium.org2013-02-131-1/+9
| | | | | | | | | | | | 64-bit PE files aren't as predictable as 32-bit, so I'll need to modify these tests. I'm disabling them for now to get the bots on the main waterfall. R=rvargas@chromium.org,robertshield@chromium.org BUG=167707 Review URL: https://codereview.chromium.org/12207128 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182078 0039d316-1c4b-4281-b951-d872f2087c98
* Base: disable GetNumberOfThreads unittest on Android.jln@chromium.org2013-02-121-0/+4
| | | | | | | | | | TBR=willchan BUG=175563 NOTRY=true Review URL: https://chromiumcodereview.appspot.com/12212149 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182066 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 182032brettw@chromium.org2013-02-129-20/+6
| | | | | | | | | | | | | | | > Make base compile with no "using base::FilePath". > > For base .cc files not using the base namespace, I added a using since theses > files should be moved to the base namespace, and then explicit qualification > will no longer be necessary. > > Review URL: https://codereview.chromium.org/12226121 TBR=brettw@chromium.org Review URL: https://codereview.chromium.org/12207132 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182040 0039d316-1c4b-4281-b951-d872f2087c98
* Disable ProcessUtilTest.GetTerminationStatusCrash on Win64 botsjschuh@chromium.org2013-02-121-1/+2
| | | | | | | | | | It passes locally but fails on the bots. Disabling for now. BUG=175753 Review URL: https://chromiumcodereview.appspot.com/12217139 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182034 0039d316-1c4b-4281-b951-d872f2087c98
* Make base compile with no "using base::FilePath".brettw@chromium.org2013-02-129-6/+20
| | | | | | | | | | For base .cc files not using the base namespace, I added a using since theses files should be moved to the base namespace, and then explicit qualification will no longer be necessary. Review URL: https://codereview.chromium.org/12226121 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182032 0039d316-1c4b-4281-b951-d872f2087c98
* Make zoom using ctrl+mouse wheel work in win aura. Windows non-aura had a ↵jam@chromium.org2013-02-121-8/+0
| | | | | | | | | hack that was a layering violation which sent a custom win32 message from RenderWidgetHostViewWin to WebContentsViewWin. Instead do this properly from RenderWidgetHostImpl to its delegate (WebContentsImpl), which works for both aura and non-aura windows builds. BUG=175055 Review URL: https://codereview.chromium.org/12221144 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181965 0039d316-1c4b-4281-b951-d872f2087c98
* [Test Expectations] Add GetCurrentPlatform() and GetCurrentConfiguration().rsesek@chromium.org2013-02-113-4/+82
| | | | | | | | | | BUG=173176 TEST=none Review URL: https://chromiumcodereview.appspot.com/12218098 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181793 0039d316-1c4b-4281-b951-d872f2087c98
* This patch adds some Android-support code to allow the networkdigit@chromium.org2013-02-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | stack to use platform-specific private key objects to perform signing in the context of SSL handshakes which require a client certificate. More specifically: - Add net/android/keystore.h, which provides native functions to operate on JNI references pointing to java.security.PrivateKey objects provided by the platform. I.e.: net::android::GetPrivateKeyType() net::android::SignWithPrivateKey() Also provide a function that can get the system's own EVP_PKEY* handle corresponding to a given PrivateKey object. This uses reflection and should *only* be used for RSA private keys when running on Android 4.0 and 4.1, in order to route around a platform bug that was only fixed in 4.2. net::android::GetOpenSSLSytstemHandleForPrivateKey() See the comments in this source file for mode details: net/android/java/org/chromium/net/AndroidKeyStore.java - Add net/android/keystore_openssl.h, which provides a function that can wrap an existing PrivateKey JNI reference around an OpenSSL EVP_PKEY object which uses custom DSA/RSA/ECDSA methods to perform signing as expected to handle client certificates. net::android::GetOpenSSLPrivateKeyWrapper() - Add relevant unit tests for the new functions. Note that the unit test comes with its own Java helper function, which is used to create a platform PrivateKey object from encoded PKCS#8 private key data. This is called from the native unit test, but does not constitute a new Java test (AndroidKeyStoreTestUtil.java). - Add corresponding new test key files under net/data/ssl/certificates/, and their generation script in net/data/ssl/scripts/. - Add net/android/private_key_type_list.h which is used both from C++ and Java to define the list of supported private key types used by this code. - Minor improvements: Add a "release()" method to crypto::ScopedOpenSSL, add missing BASE_EXPORT to one base/android/jni_array.h function declaration. BUG=166642 Review URL: https://chromiumcodereview.appspot.com/11571059 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181741 0039d316-1c4b-4281-b951-d872f2087c98
* Move remaining non-test, non-Chrome-specific Prefs code to base/prefs/.joi@chromium.org2013-02-1118-2/+2696
| | | | | | | | | | | | | | This is a mostly-automated change, using ./tools/git/move_source_file.py to move files and fix up include guards and #includes from other files. Manual edits were limited to fixing up .gypi files and adding BASE_PREFS_EXPORT where needed. TBR=ben@chromium.org BUG=155525 Review URL: https://codereview.chromium.org/12211105 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181707 0039d316-1c4b-4281-b951-d872f2087c98
* Let sequence-checking work from a SequencedWorkerPool task's destructorakalin@chromium.org2013-02-091-4/+7
| | | | | | | | BUG=165590 Review URL: https://codereview.chromium.org/11682008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181594 0039d316-1c4b-4281-b951-d872f2087c98
* Break the debug build if a scoped_ptr self-reset is detected.dcheng@chromium.org2013-02-091-0/+3
| | | | | | | | | BUG=162971 Review URL: https://chromiumcodereview.appspot.com/12194034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181583 0039d316-1c4b-4281-b951-d872f2087c98
* Rename FilePath to base::FilePath and use new location of ↵brettw@chromium.org2013-02-084-4/+4
| | | | | | | | string_number_conversions in some chrome subdirectories. Review URL: https://codereview.chromium.org/12218065 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181564 0039d316-1c4b-4281-b951-d872f2087c98
* [Test Expectations] Implement the low-level parser.rsesek@chromium.org2013-02-084-0/+556
| | | | | | | | | | | | This parser will be used by a higher-level class (not yet written) that will act as the Parser::Delegate. BUG=173176 Review URL: https://chromiumcodereview.appspot.com/12096119 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181530 0039d316-1c4b-4281-b951-d872f2087c98
* [Mac] Allow NSExceptions in third-party webcam code.shess@chromium.org2013-02-082-0/+18
| | | | | | | | | | | | Chromium cannot control that code, and NSExceptions should be safe-ish since there is no Chromium code on the stack. BUG=174708 Review URL: https://chromiumcodereview.appspot.com/12208053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181417 0039d316-1c4b-4281-b951-d872f2087c98
* Move string_split to base/strings.tfarina@chromium.org2013-02-0715-88/+101
| | | | | | | | | R=brettw@chromium.org Review URL: https://chromiumcodereview.appspot.com/12218059 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181380 0039d316-1c4b-4281-b951-d872f2087c98
* Update sections and relocations for Win7 x64jschuh@chromium.org2013-02-071-2/+9
| | | | | | | | I manually extracted these values on Win7 using dumpbin. Review URL: https://chromiumcodereview.appspot.com/12217076 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181379 0039d316-1c4b-4281-b951-d872f2087c98
* Disable SecurityTest.NewOverflow on Win64jschuh@chromium.org2013-02-071-0/+4
| | | | | | | | | | | It doesn't even compile for 64-bit under MSVC. BUG=174947 TBR=jln@chromium.org, jar@chromium.org R=jln, jar Review URL: https://codereview.chromium.org/12223042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181361 0039d316-1c4b-4281-b951-d872f2087c98
* Fix IOS build of sys_string.sbrettw@chromium.org2013-02-071-1/+1
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181353 0039d316-1c4b-4281-b951-d872f2087c98
* Fix ios build for sys_string conversions.brettw@chromium.org2013-02-071-1/+1
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181352 0039d316-1c4b-4281-b951-d872f2087c98
* Move sys_string_conversions to base/strings.brettw@chromium.org2013-02-0723-121/+130
| | | | | | | | This updates callers in base but I left a forwarding header so I can the rest in pieces (there are >300). Review URL: https://codereview.chromium.org/12213061 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181345 0039d316-1c4b-4281-b951-d872f2087c98
* Linux/ChromeOS Chromium style checker cleanup, base/ edition.rsleevi@chromium.org2013-02-073-5/+5
| | | | | | | | | | | Automated clean up of style checker errors that were missed due to the plugin not being executed on implementation files. BUG=115047 Review URL: https://chromiumcodereview.appspot.com/12236004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181246 0039d316-1c4b-4281-b951-d872f2087c98
* Move utf_offset_string_conversions and utf_string_conversion_utils to strings.brettw@chromium.org2013-02-0710-22/+25
| | | | | | Review URL: https://codereview.chromium.org/12087115 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181183 0039d316-1c4b-4281-b951-d872f2087c98
* Move string_number_conversions to base/strings.brettw@chromium.org2013-02-0729-144/+151
| | | | | | | | | | This only updates includes in base and keeps a forwarding header for now to keep the change under control. BUG= Review URL: https://codereview.chromium.org/12092078 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181161 0039d316-1c4b-4281-b951-d872f2087c98
* fix x32 handling of Atomic64vapier@chromium.org2013-02-071-1/+1
| | | | | | | | | | | | The x32 logic for the size of Atomic64 handles NaCL, but misses the Linux case. Check the standard __ILP32__ to handle that too. BUG=chromium-os:36866 TEST=compiled the code for x86_64 (64bit) & x86_64 (x32) Review URL: https://chromiumcodereview.appspot.com/12186005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181114 0039d316-1c4b-4281-b951-d872f2087c98
* import x32 updates for nspr codevapier@chromium.org2013-02-061-0/+49
| | | | | | | | | | | This is taken from the upstream nspr code base to support x32. BUG=chromium-os:36866 TEST=compiled the code for x86_64 (64bit) & x86_64 (x32) Review URL: https://chromiumcodereview.appspot.com/12180007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181067 0039d316-1c4b-4281-b951-d872f2087c98
* Remove removable storage notifications from base System Monitor. (part 3)gbillock@chromium.org2013-02-064-195/+0
| | | | | | | | | | | | | Previous changes have placed these notifications in chrome/browser/system_monitor. The storage and device interfaces have been decoupled in all consumers. R=vandebo@chromium.org BUG=149059 Review URL: https://chromiumcodereview.appspot.com/11852029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181047 0039d316-1c4b-4281-b951-d872f2087c98
* Add path traversal protection to Move and CopyFile too.cevans@chromium.org2013-02-066-8/+44
| | | | | | | | These functions are used a lot in IPC receivers to manage storage. See http://src.chromium.org/viewvc/chrome?view=rev&revision=175642 Review URL: https://codereview.chromium.org/12223014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181045 0039d316-1c4b-4281-b951-d872f2087c98
* base: Convert the remaining uses of MessageLoop::RunUntilIdle to RunLoop ↵tfarina@chromium.org2013-02-069-69/+73
| | | | | | | | | | | | | | | | variant. The former method is deprecated and actually it is just using RunLoop internally. The later is the cannonical method and should be used instead. BUG=131220 TEST=base_unittests R=darin@chromium.org Review URL: https://chromiumcodereview.appspot.com/12226007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@180991 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "GTTF: Add missing virtual destructors."phajdan.jr@chromium.org2013-02-065-10/+2
| | | | | | | | | | | | | | It turned out this is not necessary, we have a better warning already enabled in clang (-Wdelete-non-virtual-dtor, part of -Wall). TBR=darin,satorux,fischman,jamesr,jar,sky BUG=45135 Review URL: https://codereview.chromium.org/12224027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@180971 0039d316-1c4b-4281-b951-d872f2087c98
* Bugfix: to add missing prefix for return type from javap.dwkang@chromium.org2013-02-062-2/+8
| | | | | | | | | | BUG=170345 TEST=passes jni_generator_tests and works well with android/media/MediaCodec::getInputBuffers(). Review URL: https://chromiumcodereview.appspot.com/12094008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@180965 0039d316-1c4b-4281-b951-d872f2087c98
* Reset rollover_ms and last_seen_now when replacing mock tick functionscottmg@chromium.org2013-02-061-0/+3
| | | | | | | | | | | Otherwise, they are artificially inflated for subsequent tests. BUG=174108 Review URL: https://chromiumcodereview.appspot.com/12221017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@180923 0039d316-1c4b-4281-b951-d872f2087c98
* base: add GetNumberOfThreads() to Linux and Android.jln@chromium.org2013-02-063-0/+30
| | | | | | | | NOTRY=true Review URL: https://chromiumcodereview.appspot.com/12193017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@180914 0039d316-1c4b-4281-b951-d872f2087c98
* Security unittests: add more compiler barriersjln@chromium.org2013-02-061-25/+27
| | | | | | | | | | | | | | Add more compiler barriers to prevent the compiler from optimizing out calls to the very function we're testing. This makes SecurityTest* pass in a Clang release build. BUG=174452 NOTRY=true Review URL: https://chromiumcodereview.appspot.com/12210023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@180888 0039d316-1c4b-4281-b951-d872f2087c98