diff options
author | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-15 19:52:52 +0000 |
---|---|---|
committer | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-15 19:52:52 +0000 |
commit | 7fac888e97750567424c1ededd1c6c3957dddaa6 (patch) | |
tree | 194dd4c1cc4520775b42e56b619c414782049a3f /base/mac_util.h | |
parent | 490348b9600fd16e8ae14b32b78a9b9f3613fd6c (diff) | |
download | chromium_src-7fac888e97750567424c1ededd1c6c3957dddaa6.zip chromium_src-7fac888e97750567424c1ededd1c6c3957dddaa6.tar.gz chromium_src-7fac888e97750567424c1ededd1c6c3957dddaa6.tar.bz2 |
Mac: Let out-of-process tests run in bundled mode for their whole lifetime.
Since out-of-process tests override the EXE path to look like the bundled app, it makes sense to override AmIBundled() as well.
This is important because the renderer process started from browser_tests runs as bundled, and if browser and renderer process don't agree on bundled-ness, the "load plugin" requests for internal plugins from the renderer have the wrong plugin path, causing the plugin load to fail.
Also add a DCHECK that makes sure that AmIBundled() doesn't flip-flop.
This makes PDFBrowserTest work on mac, so enable it.
It looks like even unit_tests uses the out-of-process test runner, so this change is a bit hairy :-/
BUG=61258,63183
TEST=all existing tests still pass, PDFBrowserTest.* passes.
Review URL: http://codereview.chromium.org/4947002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66156 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/mac_util.h')
-rw-r--r-- | base/mac_util.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/base/mac_util.h b/base/mac_util.h index 182fcc8..d31bf82 100644 --- a/base/mac_util.h +++ b/base/mac_util.h @@ -50,6 +50,7 @@ bool FSRefFromPath(const std::string& path, FSRef* ref); // Returns true if the application is running from a bundle bool AmIBundled(); +void SetOverrideAmIBundled(bool value); // Returns true if this process is marked as a "Background only process". bool IsBackgroundOnlyProcess(); |