0
Commit Graph

45 Commits

Author SHA1 Message Date
lazyboy@chromium.org
7a846df3cd This is followup from Charlie's comments on Fady's cl: http://chromiumcodereview.appspot.com/10560022, it seems I cannot upload patch to that issue (since I'm not owner), I'm creating a new one.
Split Embedder and Guest 'roles' for browser plugin, web contents can now play any or both roles, main idea is to have more readable separation between the two.
Also stop creating browser_plugin counterpart in browser/host for every web_contents, instead create them only when there's a browser_plugin element.


BUG= 141232

Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=157650

Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=157773

NOTRY=true

Review URL: https://chromiumcodereview.appspot.com/10868012

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157808 0039d316-1c4b-4281-b951-d872f2087c98
2012-09-20 19:17:39 +00:00
zea@chromium.org
09cce46215 Revert 157773 - This is followup from Charlie's comments on Fady's cl: http://chromiumcodereview.appspot.com/10560022, it seems I cannot upload patch to that issue (since I'm not owner), I'm creating a new one.
NavigateGuest is flaky on windows (crashes at shutdown)

Split Embedder and Guest 'roles' for browser plugin, web contents can now play any or both roles, main idea is to have more readable separation between the two.
Also stop creating browser_plugin counterpart in browser/host for every web_contents, instead create them only when there's a browser_plugin element.


BUG= 141232

Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=157650

Review URL: https://chromiumcodereview.appspot.com/10868012

TBR=lazyboy@chromium.org
Review URL: https://codereview.chromium.org/10968015

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157801 0039d316-1c4b-4281-b951-d872f2087c98
2012-09-20 18:33:30 +00:00
lazyboy@chromium.org
7f087fb389 This is followup from Charlie's comments on Fady's cl: http://chromiumcodereview.appspot.com/10560022, it seems I cannot upload patch to that issue (since I'm not owner), I'm creating a new one.
Split Embedder and Guest 'roles' for browser plugin, web contents can now play any or both roles, main idea is to have more readable separation between the two.
Also stop creating browser_plugin counterpart in browser/host for every web_contents, instead create them only when there's a browser_plugin element.


BUG= 141232

Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=157650

Review URL: https://chromiumcodereview.appspot.com/10868012

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157773 0039d316-1c4b-4281-b951-d872f2087c98
2012-09-20 15:35:12 +00:00
zea@chromium.org
af886775b3 Revert 157650 - This is followup from Charlie's comments on Fady's cl: http://chromiumcodereview.appspot.com/10560022, it seems I cannot upload patch to that issue (since I'm not owner), I'm creating a new one.
Introduced too many static initializers - broke linux sizes.

Split Embedder and Guest 'roles' for browser plugin, web contents can now play any or both roles, main idea is to have more readable separation between the two.
Also stop creating browser_plugin counterpart in browser/host for every web_contents, instead create them only when there's a browser_plugin element.


BUG= 141232

Review URL: https://chromiumcodereview.appspot.com/10868012

TBR=lazyboy@chromium.org
Review URL: https://codereview.chromium.org/10946044

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157656 0039d316-1c4b-4281-b951-d872f2087c98
2012-09-19 23:53:01 +00:00
lazyboy@chromium.org
331264caeb This is followup from Charlie's comments on Fady's cl: http://chromiumcodereview.appspot.com/10560022, it seems I cannot upload patch to that issue (since I'm not owner), I'm creating a new one.
Split Embedder and Guest 'roles' for browser plugin, web contents can now play any or both roles, main idea is to have more readable separation between the two.
Also stop creating browser_plugin counterpart in browser/host for every web_contents, instead create them only when there's a browser_plugin element.


BUG= 141232

Review URL: https://chromiumcodereview.appspot.com/10868012

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157650 0039d316-1c4b-4281-b951-d872f2087c98
2012-09-19 23:23:55 +00:00
tony@chromium.org
074e7f87c2 Show the stack trace for renderer process crashes.
Having a stack trace is helpful for developers, especially on Linux
where gdb can be slow to start and require complex command line flags
for the renderer process.

Only enabled on debug builds without the sandbox.

BUG=None


Review URL: https://chromiumcodereview.appspot.com/10918198

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@156856 0039d316-1c4b-4281-b951-d872f2087c98
2012-09-14 19:11:34 +00:00
asvitkine@chromium.org
20f999b5eb Use a different algorithm with the low entropy source for field trials.
The new algorithm maps the original 13-bit low entropy source to a
new 13-bit entropy value using a mapping that is shuffled using the
trial name as a seed.

The algorithm is roughly as follows:
Take the low entropy source as an integer between 0-8191.
Generate an identity mapping of size 8192 where mapping[i] == i.
Seed a Mersenne Twister random number generator with the hash of the field trial name.
Use the seeded random number generator to shuffle the mapping array.
Map the low entropy source using the mapping array, i.e. entropy' = mapping[entropy].
Divide the resulting entropy' by 8192 to produce a double in the range of [0, 1) that
will be used for bucketing in field_trial.cc.

The above algorithm improves uniformity over the existing entropy provider when
the 13-bit entropy source is used while still providing very little overlaps of
buckets between different field trials.

Adds third_party library mt19937ar, an implementation of Mersenne Twister, for
the seeded random number generation. This is needed until C++11 becomes available
for use in Chromium, at which point C++11's <random> could be used.

BUG=143239
TEST=Unit tests. Additionally, verified that the new algorithm produces uniform results
with very little overlap of buckets between different field trials.

Review URL: https://chromiumcodereview.appspot.com/10830318

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@153322 0039d316-1c4b-4281-b951-d872f2087c98
2012-08-24 22:32:59 +00:00
rtenneti@google.com
7c477f8cea Initialize StatisticsRecorder (singleton) before FieldTrails are
initialized.

This change reverts the change to renderer_main.cc in the following
CL:

 https://chromiumcodereview.appspot.com/10779040

BUG=140688
TBR=jam@chromium.org, kaiwang@chromium.org, jamesr@chromium.org
Review URL: https://chromiumcodereview.appspot.com/10830328

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151628 0039d316-1c4b-4281-b951-d872f2087c98
2012-08-15 01:41:01 +00:00
thakis@chromium.org
59e82f0e04 mac: Remove more 10.5-only code
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
2012-08-10 22:47:14 +00:00
jam@chromium.org
719a2059c7 On Posix, make all child processes quit when the browser dies, not just the renderers.
On bots, seeing that sometimes child processes are hanging around after the browser process is gone. This confuses the sharding scripts.

BUG=90448
Review URL: https://chromiumcodereview.appspot.com/10834068

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@149023 0039d316-1c4b-4281-b951-d872f2087c98
2012-07-30 21:00:43 +00:00
rtenneti@chromium.org
fce44c1937 Initialize StatisticsRecorder in Child Process to hold
all histograms in child processes.

Made StatisticsRecorder a leaky lazy singleton.

R=jar@chromium.org, jam@chromium.org
BUG=114013
TEST=renderer histograms should still work.

Review URL: https://chromiumcodereview.appspot.com/10779040

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@147501 0039d316-1c4b-4281-b951-d872f2087c98
2012-07-19 19:17:32 +00:00
kaiwang@chromium.org
567d30ea4b Move StatisticsRecorder out of histogram.cc/h for further refactoring.
Review URL: https://chromiumcodereview.appspot.com/10703037

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146659 0039d316-1c4b-4281-b951-d872f2087c98
2012-07-13 21:48:29 +00:00
jam@chromium.org
b3aabd3419 Tighten up DEPS some more. NaCl/service process code are including internal content files. Fix the instances other sandbox stuff, which I'll do in a followup.
BUG=98716
Review URL: https://chromiumcodereview.appspot.com/10512010

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140346 0039d316-1c4b-4281-b951-d872f2087c98
2012-06-04 19:33:56 +00:00
rsleevi@chromium.org
69d5c51f4e RefCounted types should not have public destructors, content/browser part 2
BUG=123295
TEST=none
TBR=brettw

Review URL: https://chromiumcodereview.appspot.com/10071038

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@134446 0039d316-1c4b-4281-b951-d872f2087c98
2012-04-28 06:36:15 +00:00
jam@chromium.org
194e597536 Convert the logging ui_test to a browser_test.
I spent a lot of time trying to find a way to make the assertion and crash dump locator tests non-flaky and shardable. But it's not really possible, because the log file is per binary, and the dumps all get put into the same directory. That means that running with sharding will give erronous results. Also even if we weren't sharding, there's still race conditions looking at the disk for a crash dump. I kept a test which looks for a notification that we crashed (instead of looking on disk). If this breaks in the field, I believe we'll notice very quickly from the canary builds (do we also have breakpad tests for this?). For the assert/check tests, I think if something breaks there developers will very quickly find it.

BUG=121574
Review URL: https://chromiumcodereview.appspot.com/10082001

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132684 0039d316-1c4b-4281-b951-d872f2087c98
2012-04-17 22:47:38 +00:00
mad@chromium.org
2d4729587b Field Trials choices can now be forced from a command line argument, and yet still behave as if a coin was tossed, except the coin is tricked :-).
To do this, we needed to change the usage from a regular constructor (which is not private) to a static CreateInstance method (which is why there is a bunch of TBR'd owners, those changes were trivial to existing users of FieldTrials).

OWNERs of trivially changed files:
TBR=sky,jamesr,cpu,joi,

BUG=119726
TEST=base_unittests.exe --gtest_filter=FieldTrialTest.*
You can also find an active field trial name and force it to a given group by passing the following command line argument "--force-fieldtest=<trial_name>/<default_group_name>/<group_name>/"

Review URL: http://codereview.chromium.org/9705074

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131948 0039d316-1c4b-4281-b951-d872f2087c98
2012-04-12 07:08:07 +00:00
asharif@chromium.org
08c426a4ac Added code so renderer would cleanly exit.
This code is only invoked when --renderer-clean-exit is passed to Chrome.

It does the following: 
1. Makes the browser process not send a SIGTERM to its children.
2. Makes the renderer process not call _exit() in OnChannelError().

Why is this needed? The renderer process in Chrome does not exit cleanly
currently so when Chrome is profiled for optimization we do not get
representative data and miss out on optimization opportunities.
This CL addresses that problem by ensuring that exit handlers including
profile dumpers get run before the renderer exits.

BUG=107584
TEST=Rebuilt Chrome with -fprofile-generate. Verified that the renderer
process' profile is included when Chrome is closed.


Review URL: http://codereview.chromium.org/9936002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131625 0039d316-1c4b-4281-b951-d872f2087c98
2012-04-10 20:37:33 +00:00
jam@chromium.org
a980418269 Reland r131429 (Moved SuicideOnChannelErrorFilter to content.). Install it in renderer_main.cc so that it's not used in tests.
Review URL: https://chromiumcodereview.appspot.com/10032023

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131537 0039d316-1c4b-4281-b951-d872f2087c98
2012-04-10 05:43:52 +00:00
marshall@chromium.org
06c694d0cf Change ChildProcess::set_main_thread registration to occur inside the RenderThreadImpl::Init method.
Background: The Init method is currently called from the RenderThreadImpl constructor. If set_main_thread is not called from Init then ContentRendererClient::RenderThreadStarted, which is also called from Init, will not be able to retrieve the current child thread using ChildThread::current. Retrieving the current child thread from inside RenderThreadStarted is necessary for performing actions that must occur before message processing starts such as adding additional MessageFilters to the child thread's channel.

BUG=112335
TEST=ChildThread::current() returns non-NULL in ContentRendererClient::RenderThreadStarted

Review URL: http://codereview.chromium.org/9297022

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120112 0039d316-1c4b-4281-b951-d872f2087c98
2012-02-01 22:26:16 +00:00
cbentzel@chromium.org
f09d55d9bc Obey --wait-for-debugger in the render process.
BUG=101541


Review URL: http://codereview.chromium.org/8341028

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109297 0039d316-1c4b-4281-b951-d872f2087c98
2011-11-09 20:57:28 +00:00
dpranke@chromium.org
68bcd4fda6 In order to make sure that we only have one list of registered PPAPI factories with the content component build, we need to change the renderer_client interface so that we tell the client which ppapi factory manager to use, rather than relying on a static global.
R=jam@chromium.org

Review URL: http://codereview.chromium.org/8440027

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@108549 0039d316-1c4b-4281-b951-d872f2087c98
2011-11-03 21:48:37 +00:00
jam@chromium.org
4573fbd30d Move content_restriction.h and main_function_params.h to content/public/common, and put them in the content namespace.
BUG=98716
Review URL: http://codereview.chromium.org/8387039

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@108004 0039d316-1c4b-4281-b951-d872f2087c98
2011-10-31 20:25:18 +00:00
jam@chromium.org
badf5cf5f1 Expose the sandbox related code through the content API. I did a bit of cleanup while I was doing this.
-got rid of SandboxInitWrapper, since I didn't see a need to expose given that we can just expose sandbox::SandboxInterfaceInfo
-got rid of the duplicated code to initialize the broker
-since I made MainFunctionParams only have the sandbox struct on Windows, I also made the mac specific auto release pool behind an ifdef as well. It seemed odd to make something so mac specific compile on all platforms to save some #ifdefs.

BUG=98716
Review URL: http://codereview.chromium.org/8414020

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107863 0039d316-1c4b-4281-b951-d872f2087c98
2011-10-29 03:44:44 +00:00
jam@chromium.org
c08950d205 Move content_switches to content\public\common.
BUG=98716
Review URL: http://codereview.chromium.org/8277018

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105389 0039d316-1c4b-4281-b951-d872f2087c98
2011-10-13 22:20:29 +00:00
jam@chromium.org
f1a29a0fc1 Rename RenderThread to RenderThreadImpl
BUG=98716
TBR=ananta
Review URL: http://codereview.chromium.org/8171015

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104386 0039d316-1c4b-4281-b951-d872f2087c98
2011-10-06 23:08:44 +00:00
jochen@chromium.org
718eab64b0 Remove RenderProcessHost::is_extension_process
Also move the --process=extension command line flag to --extension-process

BUG=89642
TEST=everything still works


Review URL: http://codereview.chromium.org/8113035

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104173 0039d316-1c4b-4281-b951-d872f2087c98
2011-10-05 21:16:52 +00:00
dpranke@chromium.org
5e557a2246 export RendererMain from content so that it will get picked up properly by chrome_main.
R=jam@chromium.org
BUG=90442

Review URL: http://codereview.chromium.org/7841009

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100809 0039d316-1c4b-4281-b951-d872f2087c98
2011-09-13 00:05:58 +00:00
jschuh@chromium.org
f12b5127bf Revert 96565 - Warm up locale and KsecDD in renderer sandbox
I did this in the other sandboxed processes, but missed the renderer because these susbsystems get warmed up implicitly by other initialization. However, changing initialization order (or dependency changes in the underlying libraries) could introduce random crashes. So, for consistency explicit warmup is best, and will be needed for a later patch that closes the LPC ports.


BUG=None
TEST=None
Review URL: http://codereview.chromium.org/7629015

TBR=jschuh@chromium.org
Review URL: http://codereview.chromium.org/7637014

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@96566 0039d316-1c4b-4281-b951-d872f2087c98
2011-08-12 16:49:43 +00:00
jschuh@chromium.org
b40d59ad80 Warm up locale and KsecDD in renderer sandbox
I did this in the other sandboxed processes, but missed the renderer because these susbsystems get warmed up implicitly by other initialization. However, changing initialization order (or dependency changes in the underlying libraries) could introduce random crashes. So, for consistency explicit warmup is best, and will be needed for a later patch that closes the LPC ports.


BUG=None
TEST=None
Review URL: http://codereview.chromium.org/7629015

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@96565 0039d316-1c4b-4281-b951-d872f2087c98
2011-08-12 16:48:25 +00:00
mark@chromium.org
ba64e2bae9 Improve and unify Mac OS X run-time version checks.
Don't use base::SysInfo::OperatingSystemVersionNumbers, because it calls
Gestalt, which has a few bad properties. Introduce new functions that perform
specific version checks.

BUG=85972
TEST=base_unittests MacUtilTest.IsOSEllipsis
Review URL: http://codereview.chromium.org/7144007

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89028 0039d316-1c4b-4281-b951-d872f2087c98
2011-06-14 18:18:38 +00:00
tony@chromium.org
e63c4d7351 Replace OS_LINUX ifdefs with OS_POSIX & !OS_MACOSX, TOOLKIT_USES_GTK, or
USE_X11 where possible. An earlier version of this patch was used to build
Chromium on FreeBSD, OpenBSD, and Solaris.

Patch by ruben (chromium@hybridsource.org)

Review URL: http://codereview.chromium.org/7006006

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87382 0039d316-1c4b-4281-b951-d872f2087c98
2011-05-31 22:38:29 +00:00
willchan@chromium.org
e41d7ddd66 Move SystemMonitor to base/.
I plan to use SystemMonitor in net/.

Fix up the Mac implementation not to use Cocoa APIs since @interface is not allowed in base.

BUG=none
TEST=none

Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=85732

Review URL: http://codereview.chromium.org/7015017

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85737 0039d316-1c4b-4281-b951-d872f2087c98
2011-05-18 07:29:56 +00:00
willchan@chromium.org
5f988b937a Revert 85732 (broke build) - Move SystemMonitor to base/.
I plan to use SystemMonitor in net/.

Fix up the Mac implementation not to use Cocoa APIs since @interface is not allowed in base.

BUG=none
TEST=none

Review URL: http://codereview.chromium.org/7015017

TBR=willchan@chromium.org
Review URL: http://codereview.chromium.org/7042003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85734 0039d316-1c4b-4281-b951-d872f2087c98
2011-05-18 07:14:08 +00:00
willchan@chromium.org
69803a4f13 Move SystemMonitor to base/.
I plan to use SystemMonitor in net/.

Fix up the Mac implementation not to use Cocoa APIs since @interface is not allowed in base.

BUG=none
TEST=none

Review URL: http://codereview.chromium.org/7015017

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85732 0039d316-1c4b-4281-b951-d872f2087c98
2011-05-18 07:04:06 +00:00
joi@chromium.org
edafd4c1a5 Add one-time randomization support for FieldTrial, and the ability to
disable field trials. I am going to have a need for both soon.

Update some documentation about empty trial names, add TrialExists() method and update many call-sites to use this (it simplifies the previous logic which checked for existence and then for non-empty name, which can no longer happen).

Refactor a bit in browser_main.

While I'm in there and needing base/OWNERS approval, add an OWNERS
file for base/metrics that adds jar@chromium.org as an owner for that
directory.

Initially committed as r84197.
Rolled back due to DCHECK in official builds, r84373.
Will re-submit with fix.

BUG=81750
TEST=base_unittests

Review URL: http://codereview.chromium.org/6883102

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84801 0039d316-1c4b-4281-b951-d872f2087c98
2011-05-10 17:18:53 +00:00
scheib@chromium.org
366ae2448d Merge gpu_trace_event back into base/debug/trace_event.
Initial land attempt at http://codereview.chromium.org/6551019/
gpu_trace_event fork at http://codereview.chromium.org/6691013

- gpu_trace_event renamed to base/debug/trace_event and modified as appropriate for base::debug
- Unit Tests implemented for trace_event
- gpu_common library removed (was added only for gpu_trace_event)
- Existing calls to trace_event suffixed with _ETW to make ETW calls (see decisions and incremental plans at end of 6551019)
- GPU trace calls renamed to new calls.
- Tracing switch removed from test_shell, as linux log file support removed.

BUG=79509
TEST=trace_event_win_unittest and about:gpu

Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=84284

Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=84486

Review URL: http://codereview.chromium.org/6862002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84739 0039d316-1c4b-4281-b951-d872f2087c98
2011-05-10 02:23:58 +00:00
scheib@chromium.org
5ae1f730ff Revert 84486 - Merge gpu_trace_event back into base/debug/trace_event.Initial land attempt at http://codereview.chromium.org/6551019/gpu_trace_event fork at http://codereview.chromium.org/6691013- gpu_trace_event renamed to base/debug/trace_event and modified as appropriate for base::debug- Unit Tests implemented for trace_event- gpu_common library removed (was added only for gpu_trace_event)- Existing calls to trace_event suffixed with _ETW to make ETW calls (see decisions and incremental plans at end of 6551019)- GPU trace calls renamed to new calls.- Tracing switch removed from test_shell, as linux log file support removed.BUG=79509TEST=trace_event_win_unittest and about:gpuCommitted: http://src.chromium.org/viewvc/chrome?view=rev&revision=84284Review URL: http://codereview.chromium.org/6862002
TBR=scheib@chromium.org
Review URL: http://codereview.chromium.org/6955006

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84494 0039d316-1c4b-4281-b951-d872f2087c98
2011-05-06 20:30:09 +00:00
scheib@chromium.org
820d851f56 Merge gpu_trace_event back into base/debug/trace_event.
Initial land attempt at http://codereview.chromium.org/6551019/
gpu_trace_event fork at http://codereview.chromium.org/6691013

- gpu_trace_event renamed to base/debug/trace_event and modified as appropriate for base::debug
- Unit Tests implemented for trace_event
- gpu_common library removed (was added only for gpu_trace_event)
- Existing calls to trace_event suffixed with _ETW to make ETW calls (see decisions and incremental plans at end of 6551019)
- GPU trace calls renamed to new calls.
- Tracing switch removed from test_shell, as linux log file support removed.

BUG=79509
TEST=trace_event_win_unittest and about:gpu

Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=84284

Review URL: http://codereview.chromium.org/6862002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84486 0039d316-1c4b-4281-b951-d872f2087c98
2011-05-06 20:04:13 +00:00
joi@chromium.org
5557b198f9 Revert 84197 - Add one-time randomization support for FieldTrial, and the ability to
disable field trials. I am going to have a need for both soon.

Cleaning up some comments about empty trial names, adding static
method TrialExists() and simplifying many call sites by using this
method.

While I'm in there and needing base/OWNERS approval, add an OWNERS
file for base/metrics that adds jar@chromium.org as an owner for that
directory.

BUG=none
TEST=base_unittests
TBR=jam@chromium.org
R=jar@chromium.org,phajdan.jr@chromium.org,mark@chromium.org,wtc@chromium.org

Reason for revert:  See http://crbug.com/81750

BUG=81750
TBR=joi@chromium.org
Review URL: http://codereview.chromium.org/6931048

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84373 0039d316-1c4b-4281-b951-d872f2087c98
2011-05-06 00:52:39 +00:00
scheib@chromium.org
39a52b4443 Revert 84284 - Merge gpu_trace_event back into base/debug/trace_event.Initial land attempt at http://codereview.chromium.org/6551019/gpu_trace_event fork at http://codereview.chromium.org/6691013- gpu_trace_event renamed to base/debug/trace_event and modified as appropriate for base::debug- Unit Tests implemented for trace_event- gpu_common library removed (was added only for gpu_trace_event)- Existing calls to trace_event suffixed with _ETW to make ETW calls (see decisions and incremental plans at end of 6551019)- GPU trace calls renamed to new calls.- Tracing switch removed from test_shell, as linux log file support removed.BUG=79509TEST=trace_event_win_unittest and about:gpuReview URL: http://codereview.chromium.org/6862002
TBR=scheib@chromium.org
Review URL: http://codereview.chromium.org/6933035

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84293 0039d316-1c4b-4281-b951-d872f2087c98
2011-05-05 20:14:33 +00:00
scheib@chromium.org
77eecb9384 Merge gpu_trace_event back into base/debug/trace_event.
Initial land attempt at http://codereview.chromium.org/6551019/
gpu_trace_event fork at http://codereview.chromium.org/6691013

- gpu_trace_event renamed to base/debug/trace_event and modified as appropriate for base::debug
- Unit Tests implemented for trace_event
- gpu_common library removed (was added only for gpu_trace_event)
- Existing calls to trace_event suffixed with _ETW to make ETW calls (see decisions and incremental plans at end of 6551019)
- GPU trace calls renamed to new calls.
- Tracing switch removed from test_shell, as linux log file support removed.

BUG=79509
TEST=trace_event_win_unittest and about:gpu

Review URL: http://codereview.chromium.org/6862002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84284 0039d316-1c4b-4281-b951-d872f2087c98
2011-05-05 19:49:05 +00:00
joi@chromium.org
780702c2aa Add one-time randomization support for FieldTrial, and the ability to
disable field trials. I am going to have a need for both soon.

Cleaning up some comments about empty trial names, adding static
method TrialExists() and simplifying many call sites by using this
method.

While I'm in there and needing base/OWNERS approval, add an OWNERS
file for base/metrics that adds jar@chromium.org as an owner for that
directory.

BUG=none
TEST=base_unittests
TBR=jam@chromium.org

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84197 0039d316-1c4b-4281-b951-d872f2087c98
2011-05-05 02:22:11 +00:00
ajwong@chromium.org
b224f79da7 Add support for base::Closure in the MessageLoop, and reimplement the whole sucker on top of base::Closure. After this, all Task objects that are posted will be wrapped in a closure prior to dispatch.
BUG=35223
TEST=unittests.

Review URL: http://codereview.chromium.org/6463013

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82300 0039d316-1c4b-4281-b951-d872f2087c98
2011-04-20 16:02:23 +00:00
jam@chromium.org
71e99ae1df Enforce no more includes through DEPS. I also added DEPS checking for gpu/plugin/worker directories as well.
I've moved the breakpad specific code out of content\renderer\renderer_main.cc into chrome\renderer\chrome_render_process_observer.cc.  I've also moved the rest of the process-specific initialization from chrome_content_renderer_client.cc there as well, so that all the chrome renderer process init code is one place (some of it existed before chrome_render_process_observer.cc was created).
Review URL: http://codereview.chromium.org/6884001

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81979 0039d316-1c4b-4281-b951-d872f2087c98
2011-04-18 19:10:38 +00:00
jam@chromium.org
bf2ecb42b2 Move renderer_main and renderer_glue to content.
Review URL: http://codereview.chromium.org/6878002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81962 0039d316-1c4b-4281-b951-d872f2087c98
2011-04-18 17:30:35 +00:00