summaryrefslogtreecommitdiffstats
path: root/chrome_frame
Commit message (Collapse)AuthorAgeFilesLines
* Generate ETW events in Chrome Frame under the control of the same env var as ↵grt@chromium.org2012-03-011-3/+14
| | | | | | | | | | | | | Chrome. CHROME_ETW_LOGGING env var now controls whether or not npchrome_frame.dll generates ETW events. This matches the behavior in chrome.exe. I also tweaked the log settings so that the same info is included in npchrome_frame.dll log messages as those in chrome.exe. BUG=none TEST=none Review URL: http://codereview.chromium.org/9487011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124427 0039d316-1c4b-4281-b951-d872f2087c98
* Don't crash if the CF Tests are not running as admin.robertshield@chromium.org2012-03-011-1/+2
| | | | | | | | | | BUG=NONE TEST=NONE Review URL: http://codereview.chromium.org/9533009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124426 0039d316-1c4b-4281-b951-d872f2087c98
* Begin to separate the MetricsService logic for creating vs uploading logsstuartmorgan@chromium.org2012-03-011-12/+14
| | | | | | | | | | | | | | | | The biggest change here is to remove the dedicated current->staged->upload pipeline, and instead have finishing a log add it to the queue (the same one that's used for old logs that came from disk), and always do uploading by staging from the queue. That will allow for MetricsService to handle cutting logs and uploading logs separately in a future CL (and allows for a bit of simplification now in the shutdown case, where it's no longer necessary to stage the current log for upload just so that it's possible to immediately store it). The rest of the MetricsService changes aren't actually changing the flow, the just split some things into more methods so that future CLs to separate cutting logs and uploading them will be smaller and easier to understand. StartFinalLogInfoCollection/OnFinalLogInfoCollectionDone were added to make it much more clear how StartScheduledUpload gets to the code that actually does the uploading, since it's confusing to have to follow the jumps through the various implementation details of the specific info being gathered to see what the end point is. BUG=None TEST=Metrics should continue to be reported from official builds Review URL: http://codereview.chromium.org/9396001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124405 0039d316-1c4b-4281-b951-d872f2087c98
* Upload UMA data using protocol buffers.isherman@chromium.org2012-02-291-1/+3
| | | | | | | | | | | | | | For now, we will also preserve the existing XML upload system, so that there is no risk of data loss. Previously committed as [ https://chromiumcodereview.appspot.com/9232071/ ]. This fixes the ChromiumOS compile. BUG=109817 TEST=unit tested TBR=jar@chromium.org Review URL: https://chromiumcodereview.appspot.com/9474041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124086 0039d316-1c4b-4281-b951-d872f2087c98
* Reduce flakiness in chrome_frame_tests.exe by having each test run in a ↵grt@chromium.org2012-02-2814-250/+418
| | | | | | | | | | | | | | | | clean environment. This includes: * A TestScrubber runs between all test to kill stray IE and Chrome processes and delete the user data dir. * Refactored CFACWithChrome and ProxyFactoryTest tests to get rid of copy-n-paste. * Tests in ChromeFrameTestWithWebServer that launch Chrome now use a fresh user data dir so as not to collide with a users' existing profile. BUG=81479,114386 TEST=chrome_frame_tests.exe is green on the win_cf trybot Review URL: https://chromiumcodereview.appspot.com/9460019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123973 0039d316-1c4b-4281-b951-d872f2087c98
* Enable Chrome Frame net tests on IE9.erikwright@chromium.org2012-02-282-31/+22
| | | | | | | | | | | | Includes disabling a test that is flaky on IE9. BUG=114369 TEST=Chrome Frame net tests run reliably on IE9, including on try bots and the waterfall. Review URL: http://codereview.chromium.org/9465016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123967 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 123901 - Upload UMA data using protocol buffers.cpu@chromium.org2012-02-281-3/+1
| | | | | | | | | | | | | | | For now, we will also preserve the existing XML upload system, so that there is no risk of data loss. BUG=109817 TEST=unit tested Review URL: http://codereview.chromium.org/9232071 TBR=isherman@chromium.org Review URL: https://chromiumcodereview.appspot.com/9478031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123908 0039d316-1c4b-4281-b951-d872f2087c98
* Upload UMA data using protocol buffers.isherman@chromium.org2012-02-281-1/+3
| | | | | | | | | | | | For now, we will also preserve the existing XML upload system, so that there is no risk of data loss. BUG=109817 TEST=unit tested Review URL: http://codereview.chromium.org/9232071 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123901 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup: Remove some deprecated file_util methods.thestig@chromium.org2012-02-241-9/+9
| | | | | | | | | BUG=24672 TEST=none Review URL: http://codereview.chromium.org/9442038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123551 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 123123 (probably caused a big perf regression -- http://crbug.com/115479,thakis@chromium.org2012-02-231-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and possibly made frame rate tests fail: http://crbug.com/115477. Will revert the revert if it doesn't help.) - Fix media code to work with new ffmpeg. Once ffmpeg git, svn are updated to new ffmpeg, will update DEPS in this CL. Which when committed, should seal the deal for the ffmpeg roll. API Changes: avutil: SampleFormat->AVSampleFormat avutil: av_get_bits_per_sample_fmt -> av_get_bytes_per_sample avcodec: avcodec_open -> avcodec_open2(..., NULL) avcodec: avcodec_decode_video2(... AVPacket ...) -> const AVPacket. avformat: av_open_input_file -> avformat_open_input avformat: av_register_protocol2 -> ffurl_register_protocol avformat: av_close_input_file -> avformat_close_input(&...) avformat: av_find_stream_info -> avformat_find_stream_info(..., NULL) URLContext now has a url_open2 method as well, for now I've set this to NULL. Also fixes: - ffmpeg_unittests change threading to mirror ffmpeg_video_decoder. There's an issue where threading causes the last frames of a no-audio video to be clipped. It existed before this ffmpeg roll, but because threading was disabled by default in ffmpeg, we never noticed it. - ffmpeg_demuxer_tests: GetBitrate_UnsetInContainer_NoFileSize now passes. - New ffmpeg_unittests passes: sync0_ogv/FFmpegTest.Seek_Video/0, where GetParam() = "sync0.ogv" sync1_ogv/FFmpegTest.Seek_Video/0, where GetParam() = "sync1.ogv" sync2_ogv/FFmpegTest.Seek_Video/0, where GetParam() = "sync2.ogv" FFmpeg fixups here, https://chromiumcodereview.appspot.com/9325049/ New git repo here: http://git.chromium.org/gitweb/?p=chromium/third_party/ffmpeg.git;a=summary Merge+Patches diff: https://chromiumcodereview.appspot.com/9317107 BUG=110776 TEST=unittests, layouttests, etc. Trybots. Review URL: https://chromiumcodereview.appspot.com/9317096 TBR=dalecurtis@google.com Review URL: https://chromiumcodereview.appspot.com/9455018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123249 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 123135 - Revert 123118 - Don't run chrome_frame_net_tests ↵groby@chromium.org2012-02-222-1/+44
| | | | | | | | | | | | | | | | | | | | | | | | URLRequestTestHTTP over loopback, due to mysterious failures. Revert the revert - too fast on the trigger Depends on: http://codereview.chromium.org/9419053/ (make GetNetworkList filter-out 'down' adapters) http://codereview.chromium.org/9368031/ (make HTTP tests parameterizable) http://codereview.chromium.org/9369029/ (make TestServer parameterizable) BUG=114369 TEST=chrome_frame_net_tests pass on the try bots. Review URL: http://codereview.chromium.org/9401013 TBR=erikwright@chromium.org Review URL: https://chromiumcodereview.appspot.com/9444001 TBR=groby@chromium.org Review URL: https://chromiumcodereview.appspot.com/9438002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123139 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 123118 - Don't run chrome_frame_net_tests URLRequestTestHTTP over ↵groby@chromium.org2012-02-222-44/+1
| | | | | | | | | | | | | | | | | | | | | loopback, due to mysterious failures. Reverted due to win compile failure Depends on: http://codereview.chromium.org/9419053/ (make GetNetworkList filter-out 'down' adapters) http://codereview.chromium.org/9368031/ (make HTTP tests parameterizable) http://codereview.chromium.org/9369029/ (make TestServer parameterizable) BUG=114369 TEST=chrome_frame_net_tests pass on the try bots. Review URL: http://codereview.chromium.org/9401013 TBR=erikwright@chromium.org Review URL: https://chromiumcodereview.appspot.com/9444001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123135 0039d316-1c4b-4281-b951-d872f2087c98
* Fix media code to work with new ffmpeg.dalecurtis@google.com2012-02-221-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Once ffmpeg git, svn are updated to new ffmpeg, will update DEPS in this CL. Which when committed, should seal the deal for the ffmpeg roll. API Changes: avutil: SampleFormat->AVSampleFormat avutil: av_get_bits_per_sample_fmt -> av_get_bytes_per_sample avcodec: avcodec_open -> avcodec_open2(..., NULL) avcodec: avcodec_decode_video2(... AVPacket ...) -> const AVPacket. avformat: av_open_input_file -> avformat_open_input avformat: av_register_protocol2 -> ffurl_register_protocol avformat: av_close_input_file -> avformat_close_input(&...) avformat: av_find_stream_info -> avformat_find_stream_info(..., NULL) URLContext now has a url_open2 method as well, for now I've set this to NULL. Also fixes: - ffmpeg_unittests change threading to mirror ffmpeg_video_decoder. There's an issue where threading causes the last frames of a no-audio video to be clipped. It existed before this ffmpeg roll, but because threading was disabled by default in ffmpeg, we never noticed it. - ffmpeg_demuxer_tests: GetBitrate_UnsetInContainer_NoFileSize now passes. - New ffmpeg_unittests passes: sync0_ogv/FFmpegTest.Seek_Video/0, where GetParam() = "sync0.ogv" sync1_ogv/FFmpegTest.Seek_Video/0, where GetParam() = "sync1.ogv" sync2_ogv/FFmpegTest.Seek_Video/0, where GetParam() = "sync2.ogv" FFmpeg fixups here, https://chromiumcodereview.appspot.com/9325049/ New git repo here: http://git.chromium.org/gitweb/?p=chromium/third_party/ffmpeg.git;a=summary Merge+Patches diff: https://chromiumcodereview.appspot.com/9317107 BUG=110776 TEST=unittests, layouttests, etc. Trybots. Review URL: https://chromiumcodereview.appspot.com/9317096 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123123 0039d316-1c4b-4281-b951-d872f2087c98
* Don't run chrome_frame_net_tests URLRequestTestHTTP over loopback, due to ↵erikwright@chromium.org2012-02-222-1/+44
| | | | | | | | | | | | | | | | mysterious failures. Depends on: http://codereview.chromium.org/9419053/ (make GetNetworkList filter-out 'down' adapters) http://codereview.chromium.org/9368031/ (make HTTP tests parameterizable) http://codereview.chromium.org/9369029/ (make TestServer parameterizable) BUG=114369 TEST=chrome_frame_net_tests pass on the try bots. Review URL: http://codereview.chromium.org/9401013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123118 0039d316-1c4b-4281-b951-d872f2087c98
* Have ScopedClipboardWriter and Clipboard::WriteObjects take a buffer parameter.peter@pcc.me.uk2012-02-221-1/+2
| | | | | | | | | | | | GTK: add support for writing to primary selection (BUFFER_SELECTION). BUG=none TEST=ui_unittests TBR=ananta Review URL: http://codereview.chromium.org/9232075 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122972 0039d316-1c4b-4281-b951-d872f2087c98
* These tests cannot run under chrome_frame_net_tests by design.erikwright@chromium.org2012-02-211-0/+2
| | | | | | | | | | BUG=None TEST=chrome_frame_net_tests pass on IE8 Review URL: http://codereview.chromium.org/9432001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122830 0039d316-1c4b-4281-b951-d872f2087c98
* Handle NULL response_headers passed to our IHTTPNegotiate::OnResponse() ↵robertshield@chromium.org2012-02-181-3/+6
| | | | | | | | | | | | implementation. BUG=114816 TEST=Chrome Frame doesn't crash when cpturlpassthru.dll is installed. Review URL: http://codereview.chromium.org/9395049 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122691 0039d316-1c4b-4281-b951-d872f2087c98
* Update Chrome Frame owners file to reflect the folk working on Chrome Frame.robertshield@chromium.org2012-02-161-1/+2
| | | | | | | | | BUG=NONE TEST=NONE Review URL: https://chromiumcodereview.appspot.com/9420010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122316 0039d316-1c4b-4281-b951-d872f2087c98
* Flakiness cleanup: disable remaining flaky tests in src/evan@chromium.org2012-02-153-4/+4
| | | | | | | | | | | See https://groups.google.com/a/chromium.org/group/chromium-dev/browse_thread/thread/fcec09fc659f39a6 BUG=114386,109405,38404 TBR=sky Review URL: http://codereview.chromium.org/9405024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122168 0039d316-1c4b-4281-b951-d872f2087c98
* Marks a handful of chrome frame tests as flaky.sky@chromium.org2012-02-153-5/+9
| | | | | | | | | | | R=ananta@chromium.org BUG=114386 TEST=none TBR=ananta@chromium.org Review URL: https://chromiumcodereview.appspot.com/9403020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122101 0039d316-1c4b-4281-b951-d872f2087c98
* Fix COM initialization in chrome_frame_tests.exe for the ATL version ↵robertshield@chromium.org2012-02-143-9/+23
| | | | | | | | | | | | | | | | included in VS2010. Fix ATL assert that happens when COM is not correctly initialized. Remove spurious HungCOMCallDetector logging messages. BUG=114609 TEST=chrome_frame_tests.exe Review URL: http://codereview.chromium.org/9348086 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121948 0039d316-1c4b-4281-b951-d872f2087c98
* Flakiness cleanup: disable flaky tests under chrome_frame/evan@chromium.org2012-02-144-12/+13
| | | | | | | | | | | See https://groups.google.com/a/chromium.org/group/chromium-dev/browse_thread/thread/fcec09fc659f39a6 BUG=81479,83133,37088,32321,111074,114058,90791,83114,64794 Review URL: http://codereview.chromium.org/9391011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121919 0039d316-1c4b-4281-b951-d872f2087c98
* Disable Chrome's print preview in Chrome Frame.grt@chromium.org2012-02-144-1/+39
| | | | | | | | | | BUG=95568 TEST=do something on a page that calls window.print(); expect IE's print dialog to appear. should be covered by new test in chrome_frame_tests.exe. Review URL: http://codereview.chromium.org/9350044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121891 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 121852 - Fix COM initialization in chrome_frame_tests.exe when built ↵joi@chromium.org2012-02-141-2/+4
| | | | | | | | | | | | | | | with the ATL included with VS2010. BUG=114609 TEST=chrome_frame_tests.exe Review URL: http://codereview.chromium.org/9391014 TBR=robertshield@chromium.org Review URL: https://chromiumcodereview.appspot.com/9360038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121865 0039d316-1c4b-4281-b951-d872f2087c98
* Fix COM initialization in chrome_frame_tests.exe when built with the ATL ↵robertshield@chromium.org2012-02-141-4/+2
| | | | | | | | | | | | included with VS2010. BUG=114609 TEST=chrome_frame_tests.exe Review URL: http://codereview.chromium.org/9391014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121852 0039d316-1c4b-4281-b951-d872f2087c98
* Enforce that chrome_frame only uses content through its API.jam@chromium.org2012-02-132-1/+7
| | | | | | | BUG=98716 Review URL: https://chromiumcodereview.appspot.com/9382039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121741 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup in ProcessSingleton. These originated as candidate fixes for issue ↵joi@chromium.org2012-02-103-12/+4
| | | | | | | | | | | | | | | | | 111361, but the true fix is cpu@'s r119830. a) Unify code to retrieve HMODULE based on address in base::GetModuleFromAddress. (cpu@'s r119830 already has the fix to use the DLL's HMODULE 119830 rather than the EXE's HINSTANCE) b) Try harder to unregister the window class, by trying it first in ProcessSingleton::Cleanup, which gets called before the fast shutdown path calls ExitProcess(). Also, use correct HMODULE to unregister. c) Avoid any possibility of a race to create the message window when the Create() method is called from NotifyOtherProcessOrCreate() or from outside the class by moving the implementation of Create(), which was always called from the constructor, into the constructor and making Create() just return true or false based on the success of the work already done. BUG=111361 Review URL: http://codereview.chromium.org/9121046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121480 0039d316-1c4b-4281-b951-d872f2087c98
* Support sharing of ContentMain and BrowserMain code with embedded use cases ↵marshall@chromium.org2012-02-102-1/+6
| | | | | | | | | | | | | | | | | | | | (try #3). For the browser use case it is convenient to have a single ContentMain entry point function that handles all initialization, run and shutdown. For embedded use cases it is often necessary to integrate with existing application message loops where initialization and shutdown must be handled separately. To support sharing of this code the following changes were required: 1. Refactor the ContentMain function to create a ContentMainRunner class containing separate initialization, run and shutdown functions. 2. Refactor the BrowserMain function and BrowserMainLoop class to create a BrowserMainRunner class containing separate initialization, run and shutdown functions. 3. Add a new BrowserMainParts::GetMainMessageLoop method. This is necessary to support creation of a custom MessageLoop implementation while sharing BrowserMainRunner initialization and shutdown code. BUG=112507 TEST=none Review URL: https://chromiumcodereview.appspot.com/9375017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121454 0039d316-1c4b-4281-b951-d872f2087c98
* net: Make UploadData::GetContentLength() asynchronous.satorux@chromium.org2012-02-102-3/+3
| | | | | | | | | | | | | However, the asynchronous version is not used yet. The synchronous version is kept as GetContentLengthSync(). The existing code is changed to use the synchronous version. TEST=net_unittests BUG=72001,112607 Review URL: https://chromiumcodereview.appspot.com/9321003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121411 0039d316-1c4b-4281-b951-d872f2087c98
* Make google_update.gyp write shared files to SHARED_INTERMEDIATE_DIRrsleevi@chromium.org2012-02-101-2/+2
| | | | | | | | | BUG=97186 Review URL: http://codereview.chromium.org/9371010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121396 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 121236 - Support sharing of ContentMain and BrowserMain code with ↵marshall@chromium.org2012-02-092-6/+1
| | | | | | | | | embedded use cases (try #2). Tests failing. Review URL: https://chromiumcodereview.appspot.com/9372027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121245 0039d316-1c4b-4281-b951-d872f2087c98
* Support sharing of ContentMain and BrowserMain code with embedded use cases ↵marshall@chromium.org2012-02-092-1/+6
| | | | | | | | | | | | | | | | | | | | (try #2). For the browser use case it is convenient to have a single ContentMain entry point function that handles all initialization, run and shutdown. For embedded use cases it is often necessary to integrate with existing application message loops where initialization and shutdown must be handled separately. To support sharing of this code the following changes were required: 1. Refactor the ContentMain function to create a ContentMainRunner class containing separate initialization, run and shutdown functions. 2. Refactor the BrowserMain function and BrowserMainLoop class to create a BrowserMainRunner class containing separate initialization, run and shutdown functions. 3. Add a new BrowserMainParts::GetMainMessageLoop method. This is necessary to support creation of a custom MessageLoop implementation while sharing BrowserMainRunner initialization and shutdown code. BUG=112507 TEST=none Review URL: https://chromiumcodereview.appspot.com/9347022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121236 0039d316-1c4b-4281-b951-d872f2087c98
* net: Rework UploadDataStream API by introducing Read().satorux@chromium.org2012-02-081-16/+15
| | | | | | | | | | | | | | | | | | | | | | | | | Replace buf()+buf_len()+MarkConsumedAndFillBuffer()+GetBufferSize() with a single function Read(). This is done by externalizing the read buffer. As a byproduct, use of memmove() in handling of SPDY HTTP requests is significantly reduced. There, a write is done with kMaxSpdyFrameChunkSize which is about 2.8KB, at a time, that caused MarkConsumedAndFillBuffer() to move the remaining 13.2KB data in the internal buffer to the beginning by memmove(), which ends up memmoving 13.2KB of data every time a chunk of 2.8KB is written. Along the way, UploadDataStream::IsOnLastChunk() is removed, which is no longer necessary. Some TODO(satish)s have also been addressed. This is in preparation for adding asynchronous API to UploadDataStream. This is why Read() takes IOBuffer*, rather than char*. BUG=72001 TEST=try bots Review URL: https://chromiumcodereview.appspot.com/9317055 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120946 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Support sharing of ContentMain and BrowserMain code with embedded ↵evan@chromium.org2012-02-062-6/+1
| | | | | | | | use cases." This reverts commit r120574. Test failures. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120581 0039d316-1c4b-4281-b951-d872f2087c98
* Support sharing of ContentMain and BrowserMain code with embedded use cases.marshall@chromium.org2012-02-062-1/+6
| | | | | | | | | | | | | | | | | | For the browser use case it is convenient to have a single ContentMain entry point function that handles all initialization, run and shutdown. For embedded use cases it is often necessary to integrate with existing application message loops where initialization and shutdown must be handled separately. To support sharing of this code the following changes were required: 1. Refactor the ContentMain function to create a ContentMainRunner class containing separate initialization, run and shutdown functions. 2. Refactor the BrowserMain function and BrowserMainLoop class to create a BrowserMainRunner class containing separate initialization, run and shutdown functions. 3. Add a new BrowserMainParts::GetMainMessageLoop method. This is necessary to support creation of a custom MessageLoop implementation while sharing BrowserMainRunner initialization and shutdown code. BUG=112507 TEST=none Review URL: https://chromiumcodereview.appspot.com/9190018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120574 0039d316-1c4b-4281-b951-d872f2087c98
* Fix chunked uploads in Chrome Frame.robertshield@chromium.org2012-02-031-8/+6
| | | | | | | | | | | | | Fixes a Chrome Frame regression from http://crrev.com/117588 Also fixes a failing CF net test, URLRequestTestHTTP.TestPostChunkedDataBeforeStart. BUG=112459 TEST=chrome_frame_tests.exe Review URL: http://codereview.chromium.org/9316067 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120404 0039d316-1c4b-4281-b951-d872f2087c98
* Add partial pre-read functionality to browser startup (Windows).rogerm@chromium.org2012-02-032-12/+144
| | | | | | | | | | | | | PartialPreReadImage has much the smae interface as PreReadImage except the bytes to read becomes a percentage to read and it reads a certain percentage of each section in the binary. Also adds some unittest coverage. BUG=chromium:98508 TEST= Review URL: http://codereview.chromium.org/9235053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120371 0039d316-1c4b-4281-b951-d872f2087c98
* Fix flakiness in Chrome Frame HeaderTest.grt@chromium.org2012-02-031-2/+3
| | | | | | | | | | | Responses were being cached by IE, so there was a reasonable probability that two permutations used the same URL. This change adds a no-cache header so the URL doesn't matter. BUG=99235 TEST=none -- covered by chrome_frame_tests.exe Review URL: https://chromiumcodereview.appspot.com/9323031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120336 0039d316-1c4b-4281-b951-d872f2087c98
* Disable ChromeFrameTestWithWebServer.WidgetModeIE_CFInstanceRPC in Debug builds.grt@chromium.org2012-02-031-1/+8
| | | | | | | | | | | | Because it consistently fails and times out. BUG=112599 TEST=none TBR=robertshield@chromium.org Review URL: https://chromiumcodereview.appspot.com/9325027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120329 0039d316-1c4b-4281-b951-d872f2087c98
* Fix races in CFTxtFieldUndo and CFTxtFieldRedo tests.grt@chromium.org2012-02-031-14/+21
| | | | | | | | | | | These tests were counting on a guarantee that value change events would come in before menu popup events. As it happens, this isn't always the case. The tests now wait for the inital value change event to come in before performing subsequent operations, thereby avoiding the race. BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/9323025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120322 0039d316-1c4b-4281-b951-d872f2087c98
* Make some CF integration tests ever so slightly more deterministic.grt@chromium.org2012-02-021-24/+40
| | | | | | | | | | | | | | | | | | | Previously, a magic timeout of 4s was used to end certain tests (listed below). This changes them so that they stop when they're done. This makes the test FASTER in release builds (yay!) and WORK in debug builds (omg!). Given the nature of these tests, I won't be surprised if there's a failure on some combination of OS/IE versions. Hopefully these can be fixed without adding 4s delays. I found that, at least on my machine, explicitly putting a Cache-control: no-cache header on responses helped make the tests more reliable. The tests are: */FullTabNavigationTest.RefreshContents/* FullTabDownloadTest.TopLevelPostReissueFromChromeFramePage */FullTabNavigationTest.RefreshContentsUATest/* BUG=none TEST=win_cf trybot runs chrome_frame_tests.exe, so no special testing is needed. Review URL: https://chromiumcodereview.appspot.com/9316022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120211 0039d316-1c4b-4281-b951-d872f2087c98
* Fix use of OnAccDocLoad in CF integration tests.grt@chromium.org2012-02-029-55/+152
| | | | | | | | | | | The matcher TabContentsTitleEq is now used by expectations so that actions are only performed when the relevant render window's document is loaded. BUG=111916 TEST=covered by chrome_frame_tests.exe Review URL: https://chromiumcodereview.appspot.com/9159030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120209 0039d316-1c4b-4281-b951-d872f2087c98
* Fix attrition experiment toast regression due to startup refactoring.finnur@chromium.org2012-02-022-3/+4
| | | | | | | | | | Make sure early return from PreCreateThreads aborts the startup sequence. BUG=110671 TEST=Launch Chrome with --try-chrome-again=0, select "Dont bug me" and Chrome should not launch. Review URL: https://chromiumcodereview.appspot.com/9150033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120186 0039d316-1c4b-4281-b951-d872f2087c98
* net: Replace UploadDataStream::Create() with Init().satorux@chromium.org2012-02-021-6/+8
| | | | | | | | | | | | | This is in preparation of adding asynchronous API to UploadDataStream. Doing initialization in Init() is cleaner anyway. BUG=72001 TEST=try bots Review URL: http://codereview.chromium.org/9235079 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120182 0039d316-1c4b-4281-b951-d872f2087c98
* Enlarge the CF integration test timeout values, more so for Debug builds.robertshield@chromium.org2012-01-311-2/+8
| | | | | | | | | | BUG=NONE TEST=NONE Review URL: http://codereview.chromium.org/9225051 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119969 0039d316-1c4b-4281-b951-d872f2087c98
* content: Modfiy ResourceBundle and content_shell to run with alternative pak ↵erg@chromium.org2012-01-281-1/+1
| | | | | | | | | | | | files. BUG=111326 R=jam TBR=sky,tony,ajwong,ananta Review URL: http://codereview.chromium.org/9232060 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119566 0039d316-1c4b-4281-b951-d872f2087c98
* Add Malay as a translation.tony@chromium.org2012-01-282-0/+8
| | | | | | | | | | | | The language code is ms. This adds the necessary files to generate the locale pak file. Translations will arrive later. BUG=111670 TBR=gfeher Review URL: http://codereview.chromium.org/9232056 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119548 0039d316-1c4b-4281-b951-d872f2087c98
* Separate chrome/common/metrics/metrics_helpers.{h,cc} into files for the ↵isherman@chromium.org2012-01-272-1/+2
| | | | | | | | | | | | | constituent classes. BUG=none TEST=none (code cleanup) TBR=ananta@chromium.org Review URL: http://codereview.chromium.org/9159004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119345 0039d316-1c4b-4281-b951-d872f2087c98
* Fix JS error in ChromeFrameTestWithWebServer.FLAKY_WidgetModeIE_SrcProperty ↵robertshield@chromium.org2012-01-261-11/+14
| | | | | | | | | | | that could result in an IE browser hang on a JS error dialog. BUG=111384 TEST=chrome_frame_tests.exe Review URL: https://chromiumcodereview.appspot.com/9290026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119245 0039d316-1c4b-4281-b951-d872f2087c98
* Convert all remaining explicit LeakyLazyInstanceTraits users to ::Leakyfischman@chromium.org2012-01-261-2/+1
| | | | | | | | | | | | | and hide LeakyLazyInstanceTraits in base::internal to discourage cargo-culting new users. BUG=none TEST=none Review URL: http://codereview.chromium.org/9117038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119173 0039d316-1c4b-4281-b951-d872f2087c98