summaryrefslogtreecommitdiffstats
path: root/base
Commit message (Collapse)AuthorAgeFilesLines
* Add AssertIOAllowed check in the implementations of ↵haruki@chromium.org2012-08-212-0/+6
| | | | | | | | | | | SysInfo::AmountOfFreeDiskSpace. BUG=143335 Review URL: https://chromiumcodereview.appspot.com/10834384 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152612 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor the Android port to allow access to the chrome layer.leandrogracia@chromium.org2012-08-211-1/+3
| | | | | | | | | | | | | | | | | | | While in desktop chrome the main WebContentsDelegate is implemented in the chrome layer by the Browser class, the Android port implements it in the content layer in its ContentViewClient class. However, because of the content layering limitations this renders the chrome layer out of reach. This patch splits the WebContentsDelegate implementation in ContentViewClient into a separate class named WebContentsDelegateAndroid in the first chrome browser component "web_contents_delegate_android". Also, this patch introduces stubs for Chrome-specific and WebView-specific extensions of WebContentsDelegateAndroid in order to set the foundations for later patches. BUG=137967 TEST=existing tests Review URL: https://chromiumcodereview.appspot.com/10831060 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152598 0039d316-1c4b-4281-b951-d872f2087c98
* Base: Allow ScopedHandle.Take() with an invalid handle.rvargas@google.com2012-08-211-2/+4
| | | | | | | | | | | | So far this was forbidden to detect fishy uses of ScopedHandle, but it is a useful pattern (not to have to verify validity before passing the handle to someone else). BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/10827407 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152589 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 152432 - Make printf and LOG output to cmd console for Windowsjbates@chromium.org2012-08-212-40/+35
| | | | | | | | | | | | BUG=142722 Review URL: https://chromiumcodereview.appspot.com/10832309 TBR=jbates@chromium.org Review URL: https://chromiumcodereview.appspot.com/10836363 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152566 0039d316-1c4b-4281-b951-d872f2087c98
* SystemMonitor: Pull device type into the device idvandebo@chromium.org2012-08-214-30/+4
| | | | | | | | | | | Add a utility class to create an split device ids as well as to get some information about devices. BUG=NONE Review URL: https://chromiumcodereview.appspot.com/10829384 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152496 0039d316-1c4b-4281-b951-d872f2087c98
* Add comments to HistogramFlatterner interface and rename a functionkaiwang@chromium.org2012-08-202-10/+25
| | | | | | Review URL: https://chromiumcodereview.appspot.com/10857067 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152434 0039d316-1c4b-4281-b951-d872f2087c98
* Make printf and LOG output to cmd console for Windowsjbates@chromium.org2012-08-202-35/+40
| | | | | | | | | BUG=142722 Review URL: https://chromiumcodereview.appspot.com/10832309 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152432 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 150969 - Disable getting histogram data from child processes other ↵rtenneti@chromium.org2012-08-201-9/+0
| | | | | | | | | | | | | | | | | than the renderer processes. Store the histogram name in the local variable for debugging purposes when we crash. R=jar TBR=jam BUG=140688 TEST=base (histogram unit tests) and unit_tests. Review URL: https://chromiumcodereview.appspot.com/10831247 TBR=rtenneti@google.com Review URL: https://chromiumcodereview.appspot.com/10865002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152427 0039d316-1c4b-4281-b951-d872f2087c98
* Attached data cleanup.avi@chromium.org2012-08-201-2/+3
| | | | | | | | | | | | | | | Clean up comments on SupportsUserData. Fix typos in ResourceContextImpl. Remove use of PropertyBag from ExtensionService as it hasn't been used since r135419. Remove use of PropertyBag from RenderWidgetHostImpl as it hasn't been used since r83122. BUG=141177 TEST=none Review URL: https://chromiumcodereview.appspot.com/10824342 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152421 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 152197 - Base: Disable the scoped handle verifier.rvargas@google.com2012-08-201-1/+1
| | | | | | | | | | | | | Intended for the beta channel. BUG=143505 TEST=none TBR=willchan@chromium.org Review URL: https://chromiumcodereview.appspot.com/10857064 TBR=rvargas@google.com git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152354 0039d316-1c4b-4281-b951-d872f2087c98
* Prevent crashes in mime_util_xdg.benjhayden@chromium.org2012-08-201-1/+3
| | | | | | Review URL: https://chromiumcodereview.appspot.com/10831337 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152347 0039d316-1c4b-4281-b951-d872f2087c98
* [Android] Implement WebSettings.{get|set}Allow{Content|File}Access.mnaganov@chromium.org2012-08-201-0/+31
| | | | | | | | This is as much as we can put upstream now. Review URL: https://chromiumcodereview.appspot.com/10827380 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152318 0039d316-1c4b-4281-b951-d872f2087c98
* Advertise a minimum alignment for SharedMemory::Map().dalecurtis@chromium.org2012-08-185-5/+28
| | | | | | | | | | | | | | | | | No real changes, just adds a DCHECK() and unit test for a minimum alignment that callers can count on from Map(). Map() is already returning addresses which are aligned to the platform page size. Necessary for a media use case in which a wrapped shared memory object is passed around and is expected to have a certain alignment. BUG=none TEST=unittests, try bots. Review URL: https://chromiumcodereview.appspot.com/10827400 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152218 0039d316-1c4b-4281-b951-d872f2087c98
* Fix indent nit in file_util.hgab@chromium.org2012-08-181-8/+8
| | | | | | | | | BUG=None Review URL: https://chromiumcodereview.appspot.com/10832378 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152208 0039d316-1c4b-4281-b951-d872f2087c98
* Base: Disable the scoped handle verifier.rvargas@google.com2012-08-181-1/+1
| | | | | | | | | | | Intended for the beta channel. BUG=143505 TEST=none TBR=willchan@chromium.org Review URL: https://chromiumcodereview.appspot.com/10857064 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152197 0039d316-1c4b-4281-b951-d872f2087c98
* roll clang 161353:161757thakis@chromium.org2012-08-171-0/+5
| | | | | | | | | | | | | | Also suppress two warnings in third_party targets. gyp changes reviewed by willchan in http://codereview.chromium.org/10832369/ BUG=141532,138571 TBR=hans,willchan Review URL: https://chromiumcodereview.appspot.com/10827405 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152187 0039d316-1c4b-4281-b951-d872f2087c98
* Desktop Aura: Allow tab drags out of window.erg@chromium.org2012-08-173-1/+47
| | | | | | | | | | | | | | | | | | | | | You can now drag tabs in and out of windows in linux_aura builds. This patch has a lot of moving parts and caveats though. Moving parts in the patch: - Added system location to aura::Events. - Forwarding move events from RootWindowHostLinux to the TabDragController through an observer. - MessagePumpAuraX11 now can block waiting for a window to be mapped. If we don't do this, we can't perform a grab on the new window. - The drag offset is threaded from TabDragController through the WindowMoveController interface. (There's no other non-racey way of getting this data locally from X.) - RootWindowHostLinux now has working Show()/Hide(). TODOs: - After releasing a new window, the window looks focused, but isn't. You have to click on it for it to receive input focus. BUG=133059 TEST=none Review URL: https://chromiumcodereview.appspot.com/10828133 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152180 0039d316-1c4b-4281-b951-d872f2087c98
* Update documentation comments in field_trial.h.asvitkine@chromium.org2012-08-171-5/+6
| | | | | | | | | | | | | Adds missing parameter to FactoryGetFieldTrial() and changes group id values to not use kConstant naming convention since their values are dynamic. BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/10824353 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152179 0039d316-1c4b-4281-b951-d872f2087c98
* Disable leak annotations for NaCl untrusted builds.bbudge@chromium.org2012-08-171-1/+2
| | | | | | | | BUG=116317 TEST=compiles on linux heap checker bots Review URL: https://chromiumcodereview.appspot.com/10824356 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152137 0039d316-1c4b-4281-b951-d872f2087c98
* Support vtable_verify (new compiler option).cmtice@chromium.org2012-08-171-0/+6
| | | | | | | | | | | | | | | I'm in the process of adding a new option to the gcc compiler in ChromeOS, that does vtable pointer verification before virtual method calls. The new compiler flag is "-fvtable-verify=std" or "-fvtable-verify=preinit". I'm modifying the Chrome ebuild flag in Chrome OS to allow "USE=vtable_verify" and which causes 'use_vtable_verify' to be defined and set to 1. In this CL I have modified common.gypi to add the compiler flag '-fvtable-verify=std' if it sees use_vtable_verify set to 1; and I have modified allocator.gyp to change '-fvtable-verify=std' into '-fvtable-verify=preinit' (tcmalloc stuff requires this special flag). BUG= TEST=Built Chrome with GYP_DEFINES=use_vtable_verify=1 Review URL: https://chromiumcodereview.appspot.com/10854031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152003 0039d316-1c4b-4281-b951-d872f2087c98
* [Chromoting] Launch the host process elevated via ShellExecuteEx().alexeypa@chromium.org2012-08-164-5/+72
| | | | | | | | | | | | | | The host process is launched in in two steps now. An instance of remote_service.exe is launched in a user session (CreateProcessAsUser) and then it launches the host requesting elevation (ShellExecuteEx). This is needed because Windows 8 refuses to inject Alt+Tab unless uiAccess='true' is specified in the manifest, which in its turn requires ShellExecuteEx() to be used. Lifetime of launched processes is controlled by assigning them to a job object. Message loop changes are required to be able to process job object notifications on the I/O message loop. BUG=135217 Review URL: https://chromiumcodereview.appspot.com/10831271 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151973 0039d316-1c4b-4281-b951-d872f2087c98
* Load ICU data from file on iOS.blundell@chromium.org2012-08-161-0/+2
| | | | | | | | | | | On iOS, load ICU data from a file instead of compiling it in, to keep binary size down for the low-memory environment. BUG=None Review URL: https://chromiumcodereview.appspot.com/10829320 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151900 0039d316-1c4b-4281-b951-d872f2087c98
* Fix TraceEventTestFixture flakinessjbates@chromium.org2012-08-164-7/+31
| | | | | | | | | BUG=142804 Review URL: https://chromiumcodereview.appspot.com/10828326 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151851 0039d316-1c4b-4281-b951-d872f2087c98
* Add more code for debugging. We will revert this change when we find out the ↵kaiwang@chromium.org2012-08-162-12/+20
| | | | | | | | | | | | reason of corruption. See previous change for debugging: http://codereview.chromium.org/10826293/ BUG=140688 TBR=jar Review URL: https://chromiumcodereview.appspot.com/10857025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151837 0039d316-1c4b-4281-b951-d872f2087c98
* Set linux distro to CHROMEOS_RELEASE_DESCRIPTION on ChromeOSrbyers@chromium.org2012-08-151-3/+1
| | | | | | | | | | | | | | | | This makes ChromeOS more consistent with Linux, which uses the DISTRIB_DESCRIPTION from /etc/lsb-release here. We have a different pre-existing mechanism in the code for reading the value (since ChromeOS doesn't have the lsb_release tool), but it's conceptually the same thing. This makes it possible to search / catagorize ChromeOS crash reports based on the build, or other information about the ChromeOS version. It also allows the matching build/symbols to be more easily found given a crash report. There's no need for Aura customization of distro anymore - that was added when Aura was experimental. All ChromeOS is now Aura. BUG=142630 Review URL: https://chromiumcodereview.appspot.com/10827322 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151741 0039d316-1c4b-4281-b951-d872f2087c98
* Make sure that shutdown blocking SequencedWorkerPool use Critical Closures.milanb@chromium.org2012-08-151-1/+4
| | | | | | | | | | | | | | SequencedWorkerPool task that are pushed with the shutdown blocking enum must block shutdown, which means that the task execution is important enough that it has to be executed before going into background. Those tasks are transformed into CriticalTasks. BUG=none Review URL: https://chromiumcodereview.appspot.com/10829318 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151685 0039d316-1c4b-4281-b951-d872f2087c98
* Moves device_orientation to content namespaceaousterh@chromium.org2012-08-151-1/+1
| | | | | | | | | | | | Code in content/ should be in the content namespace. TBR=jam BUG=none Review URL: https://chromiumcodereview.appspot.com/10823318 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151684 0039d316-1c4b-4281-b951-d872f2087c98
* Add IsTsfAwareRequired methodyoichio@chromium.org2012-08-152-0/+10
| | | | | | | | | | | | | Currently, this method is same as IsMetroProcess. But whether an application must aware TSF is independent from it is under Metro style. So this method will be changed. BUG=137627 TEST=Trybot Review URL: https://chromiumcodereview.appspot.com/10855072 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151669 0039d316-1c4b-4281-b951-d872f2087c98
* Fix Native Client untrusted build of base on ChromeOS.bbudge@chromium.org2012-08-151-1/+1
| | | | | | | | BUG=116317 TEST=compiles Review URL: https://chromiumcodereview.appspot.com/10823328 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151615 0039d316-1c4b-4281-b951-d872f2087c98
* Exclude more files from Android buildwangxianzhu@chromium.org2012-08-141-0/+1
| | | | | | | | | | | | | | These files are not used on Android but were unnecessarily compiled. They didn't affect binary size because they were removed during linker GC, but excluding them may save build time, and help future modular exclusion. BUG=none TBR=ben,kbr,brettw,jar (An Android only change to gyps) Review URL: https://chromiumcodereview.appspot.com/10823291 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151529 0039d316-1c4b-4281-b951-d872f2087c98
* Histogram - Checks to cacth corruption in bucket rangesrtenneti@google.com2012-08-141-0/+34
| | | | | | | | | | | | | | when histogram is created. We will back out this change. This is temporary to catch corruptions as early as possible. TBR=jar,kaiwang TEST=base unittests BUG=140688 Review URL: https://chromiumcodereview.appspot.com/10826293 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151415 0039d316-1c4b-4281-b951-d872f2087c98
* Rename template parameter in callback from RunType to BindRunType.xiaomings@google.com2012-08-132-29/+38
| | | | | | | | | | | | | | The original code is correct. The fix is a work around for mips gcc 4.3.2. The constructor of Callback is a template. In the context of the constructor, there are two type named RunType. One is its second template parameter, the other is a typedef inside Callback. The correct compiler will pick the "local" one, i.e. the template parameter. However, gcc 4.3.2 on mips incorrectly uses the typedef. The solution is to rename the template parameter. After discussing with ajwong, we decide to push the work around up stream as it is cleaner not to shadow names anyways. BUG= Review URL: https://chromiumcodereview.appspot.com/10836215 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151383 0039d316-1c4b-4281-b951-d872f2087c98
* Make jars build from a single ant .xml templatecjhopman@chromium.org2012-08-132-67/+0
| | | | | | | | | | | | | | The ant build files for each of the jars that we create consisted of only fairly straightforward boilerplate. With the recent changes to java.gypi and java_aidl.gypi we can now build these correctly from a single .xml with GYP passing in defines for the minor differences. BUG=136756 Review URL: https://chromiumcodereview.appspot.com/10831227 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151334 0039d316-1c4b-4281-b951-d872f2087c98
* Unify and clean up system download notifications, add Mountain Lion support.avi@chromium.org2012-08-122-0/+5
| | | | | | | | | | BUG=138962 TEST=as in bug Review URL: https://chromiumcodereview.appspot.com/10827207 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151195 0039d316-1c4b-4281-b951-d872f2087c98
* Change the type of file_type parameter to int, as the parameter actually ↵haruki@chromium.org2012-08-126-33/+23
| | | | | | | | | | | | | takes or-ed bitmasks, to remove static_cast<> in the callers. BUG=139130 TEST=try bots Review URL: https://chromiumcodereview.appspot.com/10855002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151192 0039d316-1c4b-4281-b951-d872f2087c98
* mac: Remove more 10.5-only codethakis@chromium.org2012-08-103-28/+1
| | | | | | | | | BUG=137676 TBR=jamiewalch,tony Review URL: https://chromiumcodereview.appspot.com/10825302 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151142 0039d316-1c4b-4281-b951-d872f2087c98
* Remove packaged app Windows shortcuts when app is uninstalled.benwells@chromium.org2012-08-103-31/+56
| | | | | | | | | | BUG=130456 TEST=Check app shortcuts are removed when the app is uninstalled. Test extension uninstallation in general. Review URL: https://chromiumcodereview.appspot.com/10837034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151021 0039d316-1c4b-4281-b951-d872f2087c98
* Clean-up inline members of nested classes (base/)hans@chromium.org2012-08-104-12/+31
| | | | | | | | | | | | | | | | Due to a bug, the Clang-plugin style checker failed to warn about inline constructors, destructors, non-empty virtual methods, etc. for nested classes. The plugin has been fixed, and this patch is part of a clean-up of all the code that now causes the plugin to issue errors. BUG=139346 Review URL: https://chromiumcodereview.appspot.com/10825273 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151016 0039d316-1c4b-4281-b951-d872f2087c98
* Disable getting histogram data from child processes other than the renderer ↵rtenneti@google.com2012-08-101-0/+9
| | | | | | | | | | | | | | processes. Store the histogram name in the local variable for debugging purposes when we crash. R=jar TBR=jam BUG=140688 TEST=base (histogram unit tests) and unit_tests. Review URL: https://chromiumcodereview.appspot.com/10831247 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150969 0039d316-1c4b-4281-b951-d872f2087c98
* mac: Delete more 10.5-only codethakis@chromium.org2012-08-094-40/+2
| | | | | | | | | BUG=137676 TBR=tony, sky Review URL: https://chromiumcodereview.appspot.com/10837158 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150878 0039d316-1c4b-4281-b951-d872f2087c98
* Make java.gypi export jar path to input_jars_paths variablecjhopman@chromium.org2012-08-091-1/+0
| | | | | | | | | | | | | | | | | Both java.gypi and apk_test.gypi expect the jar path in input_jars_paths. This means that we were specifying the dependence in both 'dependencies' and 'input_jars_paths'. This change makes it so that we don't need that redundancy. Also, make java.gypi use input_jars_paths in its input so that we actually rebuild targets when we should. BUG=136756 Review URL: https://chromiumcodereview.appspot.com/10837143 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150850 0039d316-1c4b-4281-b951-d872f2087c98
* Add inline annotation for base::MakeCriticalClosure() in platform other than ↵chenyu@chromium.org2012-08-091-1/+1
| | | | | | | | | | | | | ios. The implementation of this method is basically noop in platforms other than ios and it is put in the header file; this change adds inline annotation to avoid duplicate symbol link error on other platforms. BUG=NONE Review URL: https://chromiumcodereview.appspot.com/10837182 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150831 0039d316-1c4b-4281-b951-d872f2087c98
* Properly notify the handle verifier when a handle is passed around. This CL ↵alexeypa@chromium.org2012-08-091-10/+5
| | | | | | | | | | | fixes issues introduced by r150508. BUG=134694 Review URL: https://chromiumcodereview.appspot.com/10855061 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150825 0039d316-1c4b-4281-b951-d872f2087c98
* Update license tool to check several additional directoriessteveblock@chromium.org2012-08-091-0/+5
| | | | | | | | | | | | | | | | Some of these directories are currently excluded from the license check. This change fixes the metadata where required and removes them from PRUNE_PATHS. Other directories contain third-party code, but aren't in directories named 'third-party', so aren't checked by the license tool by default. This change fixes the metadata where required and adds them to ADDITIONAL_PATHS. To avoid adding to about:credits licenses for modules that don't ship as part of the product, this change also introduces a special 'NOT_SHIPPED' value for the 'License File' field. This will simplify the process of adding a tool to check license compatibility for the Android WebView build. BUG=138921 Review URL: https://chromiumcodereview.appspot.com/10830201 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150800 0039d316-1c4b-4281-b951-d872f2087c98
* Remove executable bits on file.mmoss@chromium.org2012-08-091-0/+0
| | | | | | | | | TBR=brettw@chromium.org TEST=fixes checkperms on Linux builder. Review URL: https://chromiumcodereview.appspot.com/10855077 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150798 0039d316-1c4b-4281-b951-d872f2087c98
* [MIPS] Add DEBUG_BREAK() for MIPS architecture.petarj@mips.com2012-08-091-0/+2
| | | | | | | | | | | Small change to add correct asm break instruction for MIPS architecture. BUG= https://code.google.com/p/chromium/issues/detail?id=130022 TEST=make chrome Review URL: https://chromiumcodereview.appspot.com/10834234 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150789 0039d316-1c4b-4281-b951-d872f2087c98
* Skeleton code of SparseHistogramkaiwang@chromium.org2012-08-099-47/+196
| | | | | | Review URL: https://chromiumcodereview.appspot.com/10830156 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150736 0039d316-1c4b-4281-b951-d872f2087c98
* Linux: update base/third_party/xdg_mime from upstream.thestig@chromium.org2012-08-0913-122/+294
| | | | | | | | BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/10824186 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150696 0039d316-1c4b-4281-b951-d872f2087c98
* [Chromoting] Move CreateSessionToken() next to launch process utilities.alexeypa@chromium.org2012-08-081-2/+21
| | | | | | | | | BUG=134694 Review URL: https://chromiumcodereview.appspot.com/10828160 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150508 0039d316-1c4b-4281-b951-d872f2087c98
* Enable memory profiler on Linux when TC_MALLOC is enabled.rtenneti@chromium.org2012-08-081-2/+3
| | | | | | | | | | | | | | | | | | | | | | Added a tc_malloc memory extension to get bytes allocated on current thread (GetBytesAllocatedOnCurrentThread API call). R=jam@chromium.org,jar@chromium.org BUG=139667 TEST=test about:profiler after setting the env variable CHROME_PROFILER_TIME=1. In about:profiler, it will show the memory allocated per thread. This change impacts linux only. This is same as the following previously approved CL. Added needed BASE_EXPORT for kAlternateProfilerTime and SetAlternateTimeSource. the https://chromiumcodereview.appspot.com/10820063/ Review URL: https://chromiumcodereview.appspot.com/10834199 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150477 0039d316-1c4b-4281-b951-d872f2087c98