summaryrefslogtreecommitdiffstats
path: root/content/app
Commit message (Collapse)AuthorAgeFilesLines
* MemoryPressure: sends the signal to the renderer.bulach@chromium.org2013-07-021-0/+2
| | | | | | | | BUG=251723 Review URL: https://chromiumcodereview.appspot.com/17351006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209686 0039d316-1c4b-4281-b951-d872f2087c98
* Make ChildThread::current() and ChildProcess::current() only work on the ↵jam@chromium.org2013-06-261-26/+15
| | | | | | | | | | | | | main thread of the child process. In single-process mode, there would be multiple ChildThread objects each using thread local storage to get their value. Remove ChildThread::IsWebFrameValid since it's not used anymore. BUG=246884 R=scottmg@chromium.org Review URL: https://codereview.chromium.org/17741010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@208777 0039d316-1c4b-4281-b951-d872f2087c98
* Define a LoggingSettings struct to use for InitLogging()akalin@chromium.org2013-06-211-6/+4
| | | | | | | | | | | | | | | | | | Update all callers of InitLogging() to use LoggingSettings, only setting fields that need a non-default value. Turn LoggingDestination enum into a bit field and define add LOG_DEFAULT and LOG_ALL constants. Fix erroneous comment saying that the default was to not lock the log file. BUG=247594 TBR=brettw@chromium.org, cpu@chromium.org, gene@chromium.org, jam@chromium.org, rch@chromium.org, scherkus@chromium.org, sergeyu@chromium.org, sky@chromium.org, tkent@chromium.org, yfriedman@chromium.org, zea@chromium.org Review URL: https://codereview.chromium.org/16519003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207920 0039d316-1c4b-4281-b951-d872f2087c98
* Tear out ENABLED_HIDPI (use --high-dpi-support=1 instead)girard@chromium.org2013-06-171-2/+0
| | | | | | | | BUG=243445 Review URL: https://chromiumcodereview.appspot.com/17084010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@206838 0039d316-1c4b-4281-b951-d872f2087c98
* move webkit/glue/fling_* to webkit/childscottmg@chromium.org2013-06-131-0/+4
| | | | | | | | | | | A little bit of rejiggering for Android JNI registration. R=jam@chromium.org, jamesr@chromium.org BUG=237249 Review URL: https://codereview.chromium.org/16424008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@206148 0039d316-1c4b-4281-b951-d872f2087c98
* Remove duplicated --wait-for-debugger checkfeng@chromium.org2013-06-111-10/+0
| | | | | | | | | | | | | | | When Chrome (for Android) starts with --wait-for-debugger, there are two places checks the flag and wait for GDB. The diff removes the wait in content::Start, and only the check in content::BrowserMainRunnerImpl::Initialize will be hit. BUG= R=michaelbai@chromium.org, yfriedman@chromium.org Review URL: https://codereview.chromium.org/16507003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@205616 0039d316-1c4b-4281-b951-d872f2087c98
* Use a direct include of strings headers in content/app/.avi@chromium.org2013-06-112-4/+4
| | | | | | | | | | BUG=247723 TEST=none TBR=ben@chromium.org Review URL: https://chromiumcodereview.appspot.com/16716003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@205409 0039d316-1c4b-4281-b951-d872f2087c98
* Move a bunch of child-only code from content/common to content/childscottmg@chromium.org2013-06-061-2/+2
| | | | | | | | | | | | Was just trying to move content/common/resource_dispatcher.{cc,h}, but that ends up needing a lot of other things to move. TBR=jam@chromium.org BUG=246357 Review URL: https://codereview.chromium.org/16328003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204569 0039d316-1c4b-4281-b951-d872f2087c98
* Move webkit/user_agent/ into webkit/commonjamesr@chromium.org2013-05-231-1/+1
| | | | | | | | | | | | | webkit/user_agent/ defines a tidy little library that depends on almost nothing and can be used in any process. This moves it into webkit/common/user_agent/. It's still linked as a separate component in the shared_library build. BUG=237267 R=darin Review URL: https://chromiumcodereview.appspot.com/15702003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201700 0039d316-1c4b-4281-b951-d872f2087c98
* remove wrong chrome_split_dll ifdefsscottmg@chromium.org2013-05-171-17/+1
| | | | | | | | | | | | | | In an attempt to get the renderer to load. These were supposed to be refactored to split the affected files into two parts, but that will be attempted later. TBR=jam@chromium.org R=cpu@chromium.org BUG=237249 Review URL: https://chromiumcodereview.appspot.com/14702007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@200890 0039d316-1c4b-4281-b951-d872f2087c98
* Enable Clang warnings for implementation files on all platforms.rsleevi@chromium.org2013-05-151-1/+1
| | | | | | | | | | This fixes a few remaining issues for Android builds BUG=115047 Review URL: https://chromiumcodereview.appspot.com/14876034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@200125 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup: Remove unneeded base/file_util.h includes in content.thestig@chromium.org2013-05-141-1/+0
| | | | | | Review URL: https://chromiumcodereview.appspot.com/14606009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@199918 0039d316-1c4b-4281-b951-d872f2087c98
* Add chrome_split_dll gyp variable, and duplicate chrome_main_dll target (reland)scottmg@chromium.org2013-05-081-2/+20
| | | | | | | | | | | | | | | | | Currently contains chrome_browser_dll target. Removes some paths from browser->webcore via content that are there due to single process mode, and removes dependency of content on content_renderer. Current remaining paths from chrome_browser_dll to webcore: http://i.imgur.com/7WWRvpA.jpg Reland of https://chromiumcodereview.appspot.com/14682014 TBR=cpu@chromium.org BUG=237249 Review URL: https://codereview.chromium.org/14794004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198928 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 198834 "Add chrome_split_dll gyp variable, and duplicate ..."dewittj@chromium.org2013-05-081-20/+2
| | | | | | | | | | | | | | | | | | | | | > Add chrome_split_dll gyp variable, and duplicate chrome_main_dll target > > Currently contains chrome_browser_dll target. Removes some paths from browser->webcore > via content that are there due to single process mode, and removes dependency of content > on content_renderer. > > Current remaining paths from chrome_browser_dll to webcore: http://i.imgur.com/7WWRvpA.jpg > > R=cpu@chromium.org > BUG=237249 > > Review URL: https://chromiumcodereview.appspot.com/14682014 TBR=scottmg@chromium.org Review URL: https://codereview.chromium.org/14882004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198837 0039d316-1c4b-4281-b951-d872f2087c98
* Add chrome_split_dll gyp variable, and duplicate chrome_main_dll targetscottmg@chromium.org2013-05-081-2/+20
| | | | | | | | | | | | | | | Currently contains chrome_browser_dll target. Removes some paths from browser->webcore via content that are there due to single process mode, and removes dependency of content on content_renderer. Current remaining paths from chrome_browser_dll to webcore: http://i.imgur.com/7WWRvpA.jpg R=cpu@chromium.org BUG=237249 Review URL: https://chromiumcodereview.appspot.com/14682014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198834 0039d316-1c4b-4281-b951-d872f2087c98
* content: Use base::MessageLoop.xhwang@chromium.org2013-05-041-1/+1
| | | | | | | | | BUG=236029 R=avi@chromium.org Review URL: https://chromiumcodereview.appspot.com/14335017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198316 0039d316-1c4b-4281-b951-d872f2087c98
* [Chromium] Add tracing to startup process, particularly for Androidandrewhayden@chromium.org2013-05-032-2/+20
| | | | | | | | BUG=222350 Review URL: https://chromiumcodereview.appspot.com/13820011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198078 0039d316-1c4b-4281-b951-d872f2087c98
* Android: Move SurfaceTexture from content to ui/gl and add test.sievers@chromium.org2013-04-242-3/+7
| | | | | | | | This functionality needs to be exposed in places outside of content/, i.e. gpu/. Review URL: https://chromiumcodereview.appspot.com/14366008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196086 0039d316-1c4b-4281-b951-d872f2087c98
* Category group support/Renamings.rubentopo@gmail.com2013-04-192-3/+6
| | | | | | | | | | | | | Related review: https://codereview.chromium.org/11823016/ BUG=168284 TEST=TraceEventTestFixture.Categories, TraceEventTestFixture.CategoryFilter R=nduca Review URL: https://chromiumcodereview.appspot.com/12150004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195109 0039d316-1c4b-4281-b951-d872f2087c98
* Fix ZygoteMain() prototype: it returns a bool, not an intmdempsky@google.com2013-04-131-4/+3
| | | | | | Review URL: https://chromiumcodereview.appspot.com/14076006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194064 0039d316-1c4b-4281-b951-d872f2087c98
* Remove base/mach_ipc_mac.{h,mm}.rsesek@chromium.org2013-04-121-1/+0
| | | | | | | | | | | The only bit that was still being used was GetNumberOfMachPorts(). Move the impl of that into its one caller. BUG=none Review URL: https://chromiumcodereview.appspot.com/14137013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194022 0039d316-1c4b-4281-b951-d872f2087c98
* [Mac] Remove base::LaunchSynchronize and rewrite content::MachBroker.rsesek@chromium.org2013-04-111-27/+1
| | | | | | | | | | | | | | | | | | | | | | | | This restructures the way MachBroker parent-child communication happens. Now, the MachBroker lock will be held for the duration of LaunchProcess until the PID is returned and inserted into the MachMap. Since the lock must also be acquired on the broker thread to insert the received task port into the MachMap, this ensures that the placeholder is always inserted before the task port. MachBroker has also been rewritten to use Mach IPC directly, rather than the C++ wrappers in base/mach_ipc_mac.h. The wrappers are not flexible enough to allow the use of an audit trailer. This trailer is used to verify the PID of the sender of the check in message in the parent. Previously, this was done by another kernel trap, pid_for_task. BUG=179923 Originally Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=193486 Reverted: https://src.chromium.org/viewvc/chrome?view=rev&revision=193511 Review URL: https://codereview.chromium.org/13845008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@193638 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 193486 "[Mac] Remove base::LaunchSynchronize and rewrite ..."rsesek@chromium.org2013-04-111-1/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | > [Mac] Remove base::LaunchSynchronize and rewrite content::MachBroker. > > This restructures the way MachBroker parent-child communication happens. Now, > the MachBroker lock will be held for the duration of LaunchProcess until the > PID is returned and inserted into the MachMap. Since the lock must also be > acquired on the broker thread to insert the received task port into the > MachMap, this ensures that the placeholder is always inserted before the task > port. > > MachBroker has also been rewritten to use Mach IPC directly, rather than the C++ > wrappers in base/mach_ipc_mac.h. The wrappers are not flexible enough to allow > the use of an audit trailer. This trailer is used to verify the PID of the > sender of the check in message in the parent. Previously, this was done by > another kernel trap, pid_for_task. > > BUG=179923 > > > Review URL: https://chromiumcodereview.appspot.com/13845008 TBR=rsesek@chromium.org Review URL: https://codereview.chromium.org/14120002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@193511 0039d316-1c4b-4281-b951-d872f2087c98
* [Mac] Remove base::LaunchSynchronize and rewrite content::MachBroker.rsesek@chromium.org2013-04-101-27/+1
| | | | | | | | | | | | | | | | | | | | | | This restructures the way MachBroker parent-child communication happens. Now, the MachBroker lock will be held for the duration of LaunchProcess until the PID is returned and inserted into the MachMap. Since the lock must also be acquired on the broker thread to insert the received task port into the MachMap, this ensures that the placeholder is always inserted before the task port. MachBroker has also been rewritten to use Mach IPC directly, rather than the C++ wrappers in base/mach_ipc_mac.h. The wrappers are not flexible enough to allow the use of an audit trailer. This trailer is used to verify the PID of the sender of the check in message in the parent. Previously, this was done by another kernel trap, pid_for_task. BUG=179923 Review URL: https://chromiumcodereview.appspot.com/13845008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@193486 0039d316-1c4b-4281-b951-d872f2087c98
* Split the power monitoring feature from SystemMonitorhongbo.min@intel.com2013-04-031-4/+4
| | | | | | | | | | | | | | | | | | The SystemMonitor is a mixed monitor which not only monitors the power state changes but also the devices changes. This patch is to separate the power monitor from SystemMonitor as a new class PowerMonitor which is dedicated to monitor power state. The next step is to seek a opportunity to refactor SystemMonitor as something like DeviceMonitor. BUG=149059 TEST=base_unittests --gtest_filter=PowerMonitorTest.* Review URL: https://chromiumcodereview.appspot.com/10959020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192114 0039d316-1c4b-4281-b951-d872f2087c98
* Don't show NOTREACHED error message if WinSta0 is not avalible.vitalybuka@chromium.org2013-03-271-1/+5
| | | | | | | | | chrome --type=service can be executed as windows service. Review URL: https://chromiumcodereview.appspot.com/13119003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@190999 0039d316-1c4b-4281-b951-d872f2087c98
* [Android] Allow JNI initialization on background threadaberent@chromium.org2013-03-191-2/+2
| | | | | | | | | | | | | | | | | | | | | The code used to insist that JNI initialization only happened on the main (UI) thread. This was because it was believed that the static initialization of the Java classes initialized as a result of JNI calls might only work on the UI thread. In practice it seems that none of these Java classes have this requirement, so this seems to have been an unnecessary restriction, and slowed up startup on Chrome for Android. Remove this restriction, but add locks to ensure that only one thread is trying to initialize the JNI at a time. Also change some function names to reflect this change. BUG=214560 Review URL: https://chromiumcodereview.appspot.com/12700011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@189093 0039d316-1c4b-4281-b951-d872f2087c98
* Adds bulach to content/app/android/OWNERS.bulach@chromium.org2013-03-191-1/+1
| | | | | | | | | | | For non-PST coverage. NOTRY=true Review URL: https://chromiumcodereview.appspot.com/12787012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@189044 0039d316-1c4b-4281-b951-d872f2087c98
* Since some child processes, such as PPAPI_BROKER plugin, might not run in ↵kjyoun@google.com2013-03-193-28/+28
| | | | | | | | | | | sandbox, Sandboxed process is renamed to Child process BUG=178382 Review URL: https://chromiumcodereview.appspot.com/12321131 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@188907 0039d316-1c4b-4281-b951-d872f2087c98
* [Cleanup] Remove StringPrintf from global namespacegroby@chromium.org2013-03-181-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | use of StringPrintf now requires prefixing with base:: or a per-scope using directive TBR'd: abodenha: chrome/service brettw: content, third_party, webkit darin: base, chrome/browser, chrome/renderer dgarret: courgette enne: cc fischmann: media gbillock: sql joi: google_apis,components rsleevi: net, crypto sky: chrome/test thestig: printing, chrome/common, tsepez: ipc wez: remoting yfriedman: testing/android NOTRY=true R=brettw@chromium.org TBR=joi@chromium.org, rsleevi@chromium.org, enne@chromium.org, thestig@chromium.org, darin@chromium.org, abodenha@chromium.org, sky@chromium.org, dgarret@chromium.org, tsepez@chromium.org, fishman@chromium.org, wez@chromium.org, gbillock@chromium.org, yfriedman@chromium.org BUG= Review URL: https://codereview.chromium.org/12767006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@188857 0039d316-1c4b-4281-b951-d872f2087c98
* Android: Support GPU processsievers@chromium.org2013-03-071-7/+31
| | | | | | | | | | | | | This supports running the GPU thread in its own process outside the browser (which is really the default mode). This changes the browser compositor API to pass a Java Surface instead of ANativeWindow. (Needed to pass the surface handle over to the other process). It implements a synchronous API from the GPU thread to the browser to retrieve the surface, which is safe since this ends up on a binder thread different from the main thread. This is enabled by removing kInProcessGpu from content_startup_flags.cc Review URL: https://chromiumcodereview.appspot.com/12390077 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@186606 0039d316-1c4b-4281-b951-d872f2087c98
* Android: Remove Surface cruftsievers@chromium.org2013-03-061-2/+1
| | | | | | | | | | | | | This removes unused Surface-related Java-level IPC plumbing. What is not needed anymore is the code to pass Surfaces to child processes. This was only used in a deprecated render path and for MediaPlayer being instantiated in the renderer (which is not supported anymore, it lives in the browser process now). Review URL: https://chromiumcodereview.appspot.com/12388038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@186356 0039d316-1c4b-4281-b951-d872f2087c98
* content_shell: fix linux ENABLE_PLUGIN=0 buildmsb@chromium.org2013-02-271-0/+4
| | | | | | | | | | | | | | | Fixes the following build errors: ../../../../../../../home/mandeep/chrome_root/src/content/zygote/zygote_main_linux.cc:280: error: undefined reference to 'content::PepperPluginRegistry::PreloadModules()' obj/content/libcontent_app.a(obj/content/app/content_app.content_main_runner.o):content_main_runner.cc:function content::RunZygote(content::MainFunctionParams const&, content::ContentMainDelegate*)::kMainFunctions: error: undefined reference to 'content::PpapiPluginMain(content::MainFunctionParams const&)' BUG=none Review URL: https://chromiumcodereview.appspot.com/12316078 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@184836 0039d316-1c4b-4281-b951-d872f2087c98
* Move file_path.h to base/files.brettw@chromium.org2013-02-242-7/+7
| | | | | | TBR=sky git-svn-id: svn://svn.chromium.org/chrome/trunk/src@184344 0039d316-1c4b-4281-b951-d872f2087c98
* Add a mode flag to the tracing framework.dsinclair@chromium.org2013-02-232-2/+4
| | | | | | | | | | | | | | The mode is provided when SetEnabled is called. Currently there is only one mode which is the trace until buffer is full mode. We will be adding a continuous tracing mode which this will support. BUG=156025 Review URL: https://chromiumcodereview.appspot.com/12302036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@184258 0039d316-1c4b-4281-b951-d872f2087c98
* [Android] Make content_shell_apk and chromium_testshell components friendly.yfriedman@chromium.org2013-02-221-1/+5
| | | | | | | | | | | | | | | | | | | | | | This includes the remaining changes to atleast _compile_ the above targets. More work is needed for starting up the apps and running. Inclues: - Misc EXPORT additions (I assume I can TBR these) - Introduce a ShellDialogs JNI registrar since it's now a separate component and ui can't depend on it. - Random gyp tweaks that are needed to fully specify dependencies - Change from using NPN_MemAlloc to just plain malloc for the java bridge. For some reason the NPN_MemAlloc symbol cannot be found in the component build, but regardless all our implementations end up calling straight throught to malloc. BUG=158821 TBR=wjia@chromium.org,willchan@chromium.org,jcivelli@chromium.org Review URL: https://chromiumcodereview.appspot.com/12281017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@184173 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 183089jschuh@chromium.org2013-02-181-3/+1
| | | | | | | | | | | | | | | | | | | | Needs owner review > Linux: add option to use system tcmalloc (off by default) > > This changes things only for Linux distros, Google Chrome > will continue to use bundled tcmalloc. > > TBR=darin > > BUG=174634 > > Review URL: https://codereview.chromium.org/12224030 TBR=phajdan.jr@chromium.org Review URL: https://codereview.chromium.org/12298019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183104 0039d316-1c4b-4281-b951-d872f2087c98
* Linux: add option to use system tcmalloc (off by default)phajdan.jr@chromium.org2013-02-181-1/+3
| | | | | | | | | | | | | This changes things only for Linux distros, Google Chrome will continue to use bundled tcmalloc. TBR=darin BUG=174634 Review URL: https://codereview.chromium.org/12224030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183089 0039d316-1c4b-4281-b951-d872f2087c98
* Linux/ChromeOS Chromium style checker cleanup, content/ edition.rsleevi@chromium.org2013-02-121-1/+1
| | | | | | | | | | | 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/12210030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181822 0039d316-1c4b-4281-b951-d872f2087c98
* Add explicit base to FilePath.brettw@chromium.org2013-02-071-1/+1
| | | | | | | | This changes the "easy" content subdirectories (everything but browser, renderer, and common) and the ppapi top level directory. Review URL: https://codereview.chromium.org/12208057 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181191 0039d316-1c4b-4281-b951-d872f2087c98
* Move string tokenizer to base/strings.brettw@chromium.org2013-02-021-1/+0
| | | | | | | | BUG= Review URL: https://codereview.chromium.org/12087091 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@180211 0039d316-1c4b-4281-b951-d872f2087c98
* Fix high-DPI on Windows to make use of DIP scaling in WebKit.kevers@chromium.org2013-01-311-1/+1
| | | | | | | | | BUG=149881 Review URL: https://chromiumcodereview.appspot.com/11953054 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@179899 0039d316-1c4b-4281-b951-d872f2087c98
* Use correct favicon scale factor on Android.aruslan@chromium.org2013-01-241-5/+1
| | | | | | | | | | | | | | - Splits and moves Android's display DeviceInfo from content to gfx; - Uses DeviceInfo for Android's Screen implementation; - Uses PrimaryDisplay's scale to figure out favicon scale factor. BUG=168319 BUG=117839 TEST=manual as in 168319; AwSettingsTest#testUseWideViewportLayoutWidth Review URL: https://chromiumcodereview.appspot.com/11886074 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@178472 0039d316-1c4b-4281-b951-d872f2087c98
* Nuke jrg from android OWNERS files.yfriedman@chromium.org2013-01-161-1/+0
| | | | | | | | | | It's the only way to be sure... ... he doesn't get android code reviews. Review URL: https://codereview.chromium.org/11968018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@177174 0039d316-1c4b-4281-b951-d872f2087c98
* Throw exception when initialization failed.michaelbai@chromium.org2013-01-151-10/+11
| | | | | | | | | | | | | | | | | | | | | Previously the initialization return code was ignored, it will lead us crash later. We need a way to exit and maybe show error message if something wrong during initialization. Using exception might better than returning the result code since the initialization code could be called from constructor and initialization error is an exception at most of time. In activity, the exception is caught, then call finish() to exit. In tests, the exception is wrapped with Error and threw out. BUG=b/7705055 Review URL: https://chromiumcodereview.appspot.com/11567061 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@176975 0039d316-1c4b-4281-b951-d872f2087c98
* android: Pass CPU properties from browser to renderer process.digit@chromium.org2013-01-091-3/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | This is necessary to allow the renderer processes to use NEON instructions on ARM devices that support them in libraries like Skia. The main issue is that on JellyBean and higher, the renderer process runs in a sandbox that prevents it from accessing the filesystem, including /proc/ which is the only way to query the kernel for the features detected by the CPU. To overcome this, send the result of the probe to each renderer process, which will use the new android_setCpu() function introduced in https://gerrit.chromium.org/gerrit/#/c/39370/ Note that this requires that third-party libraries use the android_getCpuCount() and android_getCpuFeatures() function to get this data at runtime. BUG=164154 NOTRY=true Review URL: https://chromiumcodereview.appspot.com/11503013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@175820 0039d316-1c4b-4281-b951-d872f2087c98
* Add support for --enable-dcheck on Androidjoth@chromium.org2013-01-091-1/+9
| | | | | | | | | | | This allows release (non-official) builds to have dchecks enabled. BUG= Review URL: https://chromiumcodereview.appspot.com/11644093 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@175707 0039d316-1c4b-4281-b951-d872f2087c98
* Fix indentation of some functions defined inside a classmseaborn@chromium.org2013-01-041-20/+19
| | | | | | | | | | | Also remove an excess empty line. BUG=none TEST=none Review URL: https://codereview.chromium.org/11669021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@175222 0039d316-1c4b-4281-b951-d872f2087c98
* Report memory usage retained by TCMalloc freelists.alexeif@chromium.org2012-12-071-3/+15
| | | | | | Review URL: https://chromiumcodereview.appspot.com/10823205 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171767 0039d316-1c4b-4281-b951-d872f2087c98
* Add a gyp flag to allow removing dependency on ppapi.nileshagrawal@chromium.org2012-12-051-0/+2
| | | | | | | | | | | | | | | - Introduces a new macro ENABLE_PLUGINS - Create a new PluginDelegateHelper interface which is used by RenderViewImpl This flag will be used to remove all plugins related code from the Android build. BUG=162667 Review URL: https://chromiumcodereview.appspot.com/11414180 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171162 0039d316-1c4b-4281-b951-d872f2087c98