0
Commit Graph

62530 Commits

Author SHA1 Message Date
11e0d834bb [Media Session] [3/4] Move Metadata to service
This CL moves any existing uses of content::MediaMetadata
to the new media_session::MediaMetadata.

BUG=875004

Change-Id: If4b2f889ffb2264daa2bc2f5d9403e9e18586856
Reviewed-on: https://chromium-review.googlesource.com/c/1241572
Commit-Queue: Becca Hughes <beccahughes@chromium.org>
Reviewed-by: Ted Choc <tedchoc@chromium.org>
Reviewed-by: Nasko Oskov <nasko@chromium.org>
Reviewed-by: Mounir Lamouri <mlamouri@chromium.org>
Cr-Commit-Position: refs/heads/master@{#612704}
2018-11-30 18:26:51 +00:00
0866179f5d Unflake AriaEditable test
Address whitespace-related flakiness by removing whitespace which is
irrelevant to what is being tested.

TBR=aboxhall@chromium.org

Bug: 900532
Change-Id: I0b5a31b4ead65ce9b40658704b5ca8c0ff3f20dd
Reviewed-on: https://chromium-review.googlesource.com/c/1356866
Reviewed-by: Aaron Leventhal <aleventhal@chromium.org>
Commit-Queue: Aaron Leventhal <aleventhal@chromium.org>
Cr-Commit-Position: refs/heads/master@{#612691}
2018-11-30 17:52:37 +00:00
1608dec4b2 DevTools: do not expose raw headers for cross-origin requests
Same as https://chromium-review.googlesource.com/c/chromium/src/+/821410/,
but now for the network service.

Bug: 898306, 793692, 721408
Change-Id: I96a2a25e66f4ff528d84baf03d600e4f1c89dd30
Reviewed-on: https://chromium-review.googlesource.com/c/1313739
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Matt Menke <mmenke@chromium.org>
Reviewed-by: Yutaka Hirano <yhirano@chromium.org>
Reviewed-by: Dmitry Gozman <dgozman@chromium.org>
Reviewed-by: Łukasz Anforowicz <lukasza@chromium.org>
Commit-Queue: Andrey Kosyakov <caseq@chromium.org>
Cr-Commit-Position: refs/heads/master@{#612685}
2018-11-30 17:39:00 +00:00
9448fce715 Give Background Fetch's totalDownloadSize plumbing some more bits
The spec defines it to be an unsigned long long (uint64_t in Chromium),
so let's make sure all the plumbing agrees with that.

Change-Id: I9c22d4a197d726c276b3e69818276a4d149c68c8
Reviewed-on: https://chromium-review.googlesource.com/c/1356709
Reviewed-by: Avi Drissman <avi@chromium.org>
Reviewed-by: Mugdha Lakhani <nator@chromium.org>
Commit-Queue: Mugdha Lakhani <nator@chromium.org>
Cr-Commit-Position: refs/heads/master@{#612684}
2018-11-30 17:36:19 +00:00
6c2dfeb52c Fix race in shutdown of ServiceWorkerVersionBrowserTest.UpdateBypassesCacheAfter24Hours
This test doesn't unregister the service worker unlike others in the same file and
is likely working by accident.  This becomes a problem when we migrate from
MessageLoop to the SequenceManager.

Bug: 863341, 891670
Change-Id: I658ce56f244d1beda44f02e53cceaf0a7ea7b45b
Reviewed-on: https://chromium-review.googlesource.com/c/1356940
Reviewed-by: Matt Falkenhagen <falken@chromium.org>
Reviewed-by: Sami Kyöstilä <skyostil@chromium.org>
Commit-Queue: Alex Clarke <alexclarke@chromium.org>
Cr-Commit-Position: refs/heads/master@{#612669}
2018-11-30 16:33:54 +00:00
de9c922fc0 Fix CPU overuse caused by WebRTC event logs not being batched
Use batches of 5 seconds instead of immediate log emission.
(An upcoming CL should make this configurable from JS.)

Bug: 910576
Change-Id: Ib2b804e1e8c7798b744548fb343776fa8a315a65
Reviewed-on: https://chromium-review.googlesource.com/c/1356800
Reviewed-by: Guido Urdaneta <guidou@chromium.org>
Commit-Queue: Elad Alon <eladalon@chromium.org>
Cr-Commit-Position: refs/heads/master@{#612663}
2018-11-30 16:04:33 +00:00
bcc09eb411 [OnionSoup] move cache_storage.mojom to blink/public/mojom/cache_storage/
This CL move cache_storage.mojom
third_party/blink/public/platform/modules/cache_storage/
third_party/blink/public/mojom/cache_storage/

from: 
to: 
Change-Id: If3891da5f573f9fc369b8ac89a813d35f1e29fc7
Reviewed-on: https://chromium-review.googlesource.com/c/1351949
Commit-Queue: Richard Li <richard.li@intel.com>
Reviewed-by: Kinuko Yasuda <kinuko@chromium.org>
Reviewed-by: Makoto Shimazu <shimazu@chromium.org>
Reviewed-by: Leon Han <leon.han@intel.com>
Cr-Commit-Position: refs/heads/master@{#612652}
2018-11-30 15:00:35 +00:00
b9eb4ab264 RC: Trim some unused includes.
Bug: 910288
Change-Id: I0ab5c1d9f96662d6d5a894a93d8ed031a8655386
Reviewed-on: https://chromium-review.googlesource.com/c/1355320
Reviewed-by: François Doray <fdoray@chromium.org>
Reviewed-by: Scott Violet <sky@chromium.org>
Commit-Queue: Sigurður Ásgeirsson <siggi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#612647}
2018-11-30 14:45:47 +00:00
091e5e9ba1 Fix Clear-Site-Data during service workers updates
When Clear-Site-Data is triggered during a ServiceWorker update request,
there is a deadlock because the update task is waiting for the request,
the request is waiting for Clear-Site-Data, Clear-Site-Data is waiting
for the unregistration of the service worker and the unregistration is
waiting for the update task.
This is fixed by cancelling the update task and removing the service
worker without updating it.
Also requests from Service Workers are not associated with a
WebContents, so we need a better way to get a BrowserContext for these
requests.

Bug: 898465
Change-Id: I543b44e07720cf1849d1d4245ee7d36ec762efb6
Reviewed-on: https://chromium-review.googlesource.com/c/1348058
Reviewed-by: John Abd-El-Malek <jam@chromium.org>
Reviewed-by: Martin Šrámek <msramek@chromium.org>
Reviewed-by: Matt Falkenhagen <falken@chromium.org>
Commit-Queue: Christian Dullweber <dullweber@chromium.org>
Cr-Commit-Position: refs/heads/master@{#612634}
2018-11-30 13:59:51 +00:00
cdbc7919ba OnionSoup: Move ControllerServiceWorker from content/ to blink/
This CL moves
  //content/common/service_worker/controller_service_worker.mojom
to
  //third_party/blink/public/mojom/service_worker/controller_service_worker.mojom

Change-Id: I14e2c8619f7bb84ae839f1c8a2eb7c9e1aa9f6b4
Bug: 789846, 906991
Reviewed-on: https://chromium-review.googlesource.com/c/1355317
Reviewed-by: Kinuko Yasuda <kinuko@chromium.org>
Reviewed-by: Makoto Shimazu <shimazu@chromium.org>
Commit-Queue: Hiroki Nakagawa <nhiroki@chromium.org>
Cr-Commit-Position: refs/heads/master@{#612616}
2018-11-30 11:30:05 +00:00
dd5d624d60 service worker: Make LevelDB database outlive its iterator to fix crash.
As explained in the bug by pwnall:
ServiceWorkerDatabase::GetRegistrationsForOrigin() obtains a LevelDB
iterator and calls ServiceWorkerDatabase::ReadResourceRecords() in a
loop. ReadResourceRecords() in turn calls
ServiceWorkerDatabase::HandleReadResult(), which may call
ServiceWorkerDatabase::Disable() if the status is a failure. Disable()
contains a "db_.reset()" which deletes the leveldb::DB instance. So,
ReadResourceRecords() may end up deleting the database before the
iterator used by GetRegistrationsForOrigin() is deleted. The contract
for leveldb::DB::NewIterator() [1] states that the iterator must be
deleted before the DB instance is deleted.

[1] https://cs.chromium.org/chromium/src/third_party/leveldatabase/src/include/leveldb/db.h?l=92&rcl=73d5834eceee8efa9a8ccfec77dc096a9e8ba18a

Bug: 909024
Change-Id: Ifee9aa0f7e1db9168d61b6407a11e249b2001986
Reviewed-on: https://chromium-review.googlesource.com/c/1354730
Commit-Queue: Matt Falkenhagen <falken@chromium.org>
Reviewed-by: Hiroki Nakagawa <nhiroki@chromium.org>
Reviewed-by: Victor Costan <pwnall@chromium.org>
Cr-Commit-Position: refs/heads/master@{#612599}
2018-11-30 09:27:34 +00:00
466e0fbcd7 perfetto: Port Cast tracing agent to perfetto
Adds a new DataSource for the Cast system tracing agent and enables the
corresponding TracingController test on Cast for perfetto.

Bug: 900603
Change-Id: I249066a57003996bb0c40dcc88bcbe5b23414b8d
Reviewed-on: https://chromium-review.googlesource.com/c/1353892
Reviewed-by: oysteine <oysteine@chromium.org>
Reviewed-by: Sami Kyöstilä <skyostil@chromium.org>
Commit-Queue: Eric Seckler <eseckler@chromium.org>
Cr-Commit-Position: refs/heads/master@{#612597}
2018-11-30 09:06:49 +00:00
e6899956aa [OnionSoup] move fetch_api_request.mojom into blink/public/mojom/fetch/
In this CL, fetch_api_request.mojom is moved from
blink/public/platform/modules/fetch/ to blink/public/mojom/fetch/

Change-Id: I2679cd178e79561213d67a15413a60b66ae1d8f9
Reviewed-on: https://chromium-review.googlesource.com/c/1351885
Commit-Queue: Richard Li <richard.li@intel.com>
Reviewed-by: Kinuko Yasuda <kinuko@chromium.org>
Reviewed-by: Mugdha Lakhani <nator@chromium.org>
Reviewed-by: Peter Beverloo <peter@chromium.org>
Reviewed-by: Zhongyi Shi <zhongyi@chromium.org>
Reviewed-by: Makoto Shimazu <shimazu@chromium.org>
Reviewed-by: Leon Han <leon.han@intel.com>
Cr-Commit-Position: refs/heads/master@{#612596}
2018-11-30 08:42:00 +00:00
9d929045f8 Move ash/mash/viz stuff to ServiceBinding
Migrates a bunch of stuff related to either ash, mash, or viz, over to
ServiceBinding instead of the deprecated
ServiceContext/EmbeddedServiceInfo etc APIs.

Bug: 891780
Change-Id: Ia5313525013cd75c845b04f7ff6550a2880553f6
Reviewed-on: https://chromium-review.googlesource.com/c/1355981
Commit-Queue: Ken Rockot <rockot@google.com>
Reviewed-by: Scott Violet <sky@chromium.org>
Cr-Commit-Position: refs/heads/master@{#612589}
2018-11-30 07:01:09 +00:00
7591cbc49b Bring up more unit_tests for single process Mash.
BrowserWithTestWindowTest now creates a MusClient, which is important for its native widget factory.

AshTestViewsDelegate doesn't set the context on context/parentless widgets for Mash, since DesktopNativeWidgetAura doesn't require that and it interferes with getting the correct aura::Env. Using Shell's Env is problematic because the aura::Window for a WebContents wants to use aura::Env::GetInstance, which differs from the shell's Env.

WebContentsViewAura uses the Env of its context for the aura::Window it creates, if there is a context.

Also, spot fixes for:
1. LockScreenAppStateTest
2. ChromeLauncherControllerTest
3. ImmersiveModeControllerAshTest (some of these pass, a couple still
   fail, but none should crash)
4. TabStripTest
5. BookmarkBarViewTest

Bug: 906906,905430
Change-Id: I19ce303a0cad91262c1a393379ecd5c9d2bf75fb
Reviewed-on: https://chromium-review.googlesource.com/c/1351884
Reviewed-by: Scott Violet <sky@chromium.org>
Commit-Queue: Evan Stade <estade@chromium.org>
Cr-Commit-Position: refs/heads/master@{#612587}
2018-11-30 06:54:29 +00:00
09142d5973 [Printing] Stop using GetUserAgent from non-browser process
Using GetUserAgent in a sandboxed process results in a wrong value, so
get the string in the browser process and pass it to other processes.

Bug: 818450
Change-Id: Ic8a0ca4c602617f9444bcb23327eda46b560c1b5
Reviewed-on: https://chromium-review.googlesource.com/c/1353052
Reviewed-by: Lei Zhang <thestig@chromium.org>
Reviewed-by: Alexander Timin <altimin@chromium.org>
Reviewed-by: Kinuko Yasuda <kinuko@chromium.org>
Commit-Queue: Yutaka Hirano <yhirano@chromium.org>
Cr-Commit-Position: refs/heads/master@{#612575}
2018-11-30 05:30:56 +00:00
8c8cff2fb0 Revert "LazyLoad: Add support for restricting LazyLoad to Data Saver users."
This reverts commit 173a384b25.

Reason for revert: Breaks WebKit Unit Tests

https://ci.chromium.org/p/chromium/builders/luci.chromium.ci/Cast%20Audio%20Linux/26824

[ RUN      ] LazyLoadFramesTest.LazyLoadWhenNotRestricted
Received signal 11 SEGV_MAPERR 000000000000
 0x5583c9247e5f base::debug::StackTrace::StackTrace()
 0x5583c92479e1 base::debug::(anonymous namespace)::StackDumpSignalHandler()
 0x7fe0e028f330 <unknown>
 0x5583cb205d8b content::WebURLLoaderImpl::Context::Start()
 0x5583cb209f04 content::WebURLLoaderImpl::LoadAsynchronously()
 0x5583cb226023 blink::WebURLLoaderMock::LoadAsynchronously()
 0x5583c75e2862 blink::ResourceLoader::StartWith()
 0x5583c75df8ba blink::ResourceLoadScheduler::Request()
 0x5583c75e2458 blink::ResourceLoader::Start()
 0x5583c75d3d19 blink::ResourceFetcher::StartLoad()
 0x5583c75d2dd0 blink::ResourceFetcher::RequestResource()
 0x5583c75c0f96 blink::RawResource::FetchMainResource()
 0x5583ca624b45 blink::DocumentLoader::StartLoading()
 0x5583ca63158c blink::FrameLoader::CommitNavigation()
 0x5583ca22aed2 blink::WebLocalFrameImpl::CommitNavigation()

Original change's description:
> LazyLoad: Add support for restricting LazyLoad to Data Saver users.
> 
> This CL adds support for restricting the lazy loading of frames and
> images separately by field trial parameters. For lazy image loading, to
> avoid the performance hit from repeatedly locking the mutex in
> NetworkStateNotifier, the value of
> NetworkStateNotifier::SaveDataEnabled() is queried once for each frame
> and used for all images in that frame.
> 
> Bug: 901571
> Change-Id: Ic08416ebe40b6377d5c383616b4f0ceff920637a
> Reviewed-on: https://chromium-review.googlesource.com/c/1354694
> Commit-Queue: Scott Little <sclittle@chromium.org>
> Reviewed-by: Daniel Cheng <dcheng@chromium.org>
> Reviewed-by: Pavel Feldman <pfeldman@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#612554}

TBR=dcheng@chromium.org,pfeldman@chromium.org,sclittle@chromium.org

Change-Id: I95266601549407d894a91ea3b7724b0b8bceed2c
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: 901571
Reviewed-on: https://chromium-review.googlesource.com/c/1355318
Reviewed-by: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Commit-Queue: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Cr-Commit-Position: refs/heads/master@{#612574}
2018-11-30 05:29:51 +00:00
8893ec99d0 OOR-CORS: Manage per-profile access list even for NetworkService
This patch makes BrowserContext manages per-profile CORS access lists
even if NetworkService is enabled, and use it to setup initial access
lists for the non-primary NetworkContext. It will also work for
restoring per-profile CORS settings on network service restarts.

This patch makes following tests work even with
--enable-features=OutOfBlinkCors,NetworkService.

- CrossOriginReadBlockingExtensionTest.ProgrammaticContentScriptVsAppCache
- CrossOriginReadBlockingExtensionTest.WebViewContentScript
- ExtensionWebRequestApiTest.ExtensionRequests
- PlatformAppBrowserTest.Isolation

Bug: 908324, 891891
Change-Id: Ib0cfc2f5633f25187366a4d7d63168d60ea51f71
Reviewed-on: https://chromium-review.googlesource.com/c/1351208
Reviewed-by: Matt Menke <mmenke@chromium.org>
Reviewed-by: Yutaka Hirano <yhirano@chromium.org>
Reviewed-by: Kinuko Yasuda <kinuko@chromium.org>
Commit-Queue: Takashi Toyoshima <toyoshim@chromium.org>
Cr-Commit-Position: refs/heads/master@{#612567}
2018-11-30 04:58:52 +00:00
173a384b25 LazyLoad: Add support for restricting LazyLoad to Data Saver users.
This CL adds support for restricting the lazy loading of frames and
images separately by field trial parameters. For lazy image loading, to
avoid the performance hit from repeatedly locking the mutex in
NetworkStateNotifier, the value of
NetworkStateNotifier::SaveDataEnabled() is queried once for each frame
and used for all images in that frame.

Bug: 901571
Change-Id: Ic08416ebe40b6377d5c383616b4f0ceff920637a
Reviewed-on: https://chromium-review.googlesource.com/c/1354694
Commit-Queue: Scott Little <sclittle@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Pavel Feldman <pfeldman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#612554}
2018-11-30 03:59:58 +00:00
7cfa011c62 fido: fold two App ID processing helper methods into one
This is a refactoring followup to
https://chromium-review.googlesource.com/c/chromium/src/+/1356223/.

Change-Id: Ic92c73908914f49a38cae1192dcf054901018430
Reviewed-on: https://chromium-review.googlesource.com/c/1356134
Reviewed-by: Adam Langley <agl@chromium.org>
Commit-Queue: Adam Langley <agl@chromium.org>
Cr-Commit-Position: refs/heads/master@{#612545}
2018-11-30 03:34:02 +00:00
918351a05e fido: remove trailing "/" when defaulting the App ID to caller origin
In [0], the U2F spec says to default the App ID to the originating site's Facet
ID, which is (with some ambiguity) defined as the origin followed by a forward
slash [1]. Firefox and cryptotoken, on the other hand, default the App ID to just
the origin without any trailing path component. This change aligns Chrome's
behavior for App IDs in WebAuthn with that of cryptotoken and Firefox.

Also adds a check to ensure requests originating from cryptotoken do not have
an empty App ID because they cannot be defaulted in any meaningful way.

[0] https://fidoalliance.org/specs/fido-v2.0-id-20180227/fido-appid-and-facets-v2.0-id-20180227.html#determining-if-a-caller-s-facetid-is-authorized-for-an-appid
[1] https://fidoalliance.org/specs/fido-v2.0-id-20180227/fido-appid-and-facets-v2.0-id-20180227.html#determining-the-facetid-of-a-calling-application

Change-Id: Iab2c18f03fb92a150b00a56a1c39490e52188e0e
Reviewed-on: https://chromium-review.googlesource.com/c/1356223
Commit-Queue: Martin Kreichgauer <martinkr@chromium.org>
Reviewed-by: Adam Langley <agl@chromium.org>
Cr-Commit-Position: refs/heads/master@{#612533}
2018-11-30 02:55:14 +00:00
41607b5468 Convert <audio> pipeline to use async device info requests.
This is part 4/4 CLs to move the <audio>/<video> elements off of
a synchronous API that can lead to renderer hangs and premature
audio renderer errors.

This changes the AudioRendererMixerPool API to require an
AudioRendererSink and OutputDeviceInfo when providing a mixer.
AudioRendererMixerInputs are subsequently changed to use the new
API.

Likewise AudioRendererImpl also now uses the asynchronous API. To
simplify the async process, AudioRendererMixerInputs will only setup
correctly when OutputDeviceInfo has been requested ahead of time,
since that's the pattern that AudioRendererImpl will use.

This also moves the NullAudioSink setup from WebAudioSourceProvider
over to the AudioRendererImpl. This causes WebAudio to be disconnected
from the element, but if audio isn't work anyways, it shouldn't matter.

BUG=905506
TEST=updated tests, compiles, runs.
R=olka

Change-Id: I4edf89bb1e20cc91191a6eb97a0e38b6aeba68f8
Reviewed-on: https://chromium-review.googlesource.com/c/1347795
Commit-Queue: Dale Curtis <dalecurtis@chromium.org>
Reviewed-by: Jesse Doherty <jwd@chromium.org>
Reviewed-by: Olga Sharonova <olka@chromium.org>
Reviewed-by: Chrome Cunningham <chcunningham@chromium.org>
Cr-Commit-Position: refs/heads/master@{#612526}
2018-11-30 02:28:04 +00:00
1d2514d801 Revert "macOS Sandbox: Port fontloading test to V2 sandbox."
This reverts commit 1d979043f0.

Reason for revert: SandboxMacTests failing on Mac10.10 Tests

https://ci.chromium.org/p/chromium/builders/luci.chromium.ci/Mac10.10%20Tests/36825

[ RUN      ] SandboxMacTest.FontLoadingTest
[1000:779:1129/160013.776478:988116558481:WARNING:test_suite.cc(257)] Test launcher output path /b/s/w/itucGTyo/.org.chromium.Chromium.qx9Sed/test_results.xml exists. Not adding test launcher result printer.
Nov 29 16:00:13 vm132-m1.golo.chromium.org content_unittests[1000] <Error>: SeatbeltExecServer: Failed to initialize sandbox: -1 line 163: subpaths must not end with a slash
[1000:779:1129/160013.839716:988179793263:FATAL:sandbox_mac_unittest.mm(177)] Check failed: result.server->InitializeSandbox().
0   content_unittests                   0x000000010519dc1f base::debug::StackTrace::StackTrace(unsigned long) + 31
1   content_unittests                   0x00000001050d871f logging::LogMessage::~LogMessage() + 223
2   content_unittests                   0x000000010170d8b2 content::(anonymous namespace)::CheckCreateSeatbeltServer() + 562
3   content_unittests                   0x000000010170e389 content::FontLoadingProcess() + 473
4   content_unittests                   0x0000000104587138 base::TestSuite::Run() + 104
5   content_unittests                   0x000000010459f43a base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) + 282
6   content_unittests                   0x000000010459f2ea base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) + 154
7   content_unittests                   0x00000001044df9df main + 191
8   libdyld.dylib                       0x00007fff8f5845c9 start + 1

../../content/browser/sandbox_mac_unittest.mm:90: Failure
Expected equality of these values:
  0
  rv
    Which is: 1
Stack trace:
0   content_unittests                   0x0000000102cbd93b testing::internal::UnitTestImpl::CurrentOsStackTraceExceptTop(int) + 91
1   content_unittests                   0x0000000102cbd2f9 testing::internal::AssertHelper::operator=(testing::Message const&) const + 89
2   content_unittests                   0x000000010199ea19 content::(anonymous namespace)::SandboxMacTest::ExecuteWithParams(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, void (*)(sandbox::SeatbeltExecClient*)) + 1625
3   content_unittests                   0x000000010199ca4c content::(anonymous namespace)::SandboxMacTest::ExecuteInRendererSandbox(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) + 172
4   content_unittests                   0x000000010199db5e content::SandboxMacTest_FontLoadingTest_Test::TestBody() + 1278

[  FAILED  ] SandboxMacTest.FontLoadingTest (286 ms)

Original change's description:
> macOS Sandbox: Port fontloading test to V2 sandbox.
> 
> This removes all of the obsolete unit testing code from the V1 sandbox.
> 
> Bug: 902597
> Change-Id: I426e3b815e0bf23036815750aab350adbb22e068
> Reviewed-on: https://chromium-review.googlesource.com/c/1327527
> Commit-Queue: Greg Kerr <kerrnel@chromium.org>
> Reviewed-by: Robert Sesek <rsesek@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#612416}

TBR=kerrnel@chromium.org,rsesek@chromium.org

Change-Id: I4731044d228c3b21778334b1ef2693baa1818239
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: 902597
Reviewed-on: https://chromium-review.googlesource.com/c/1356165
Reviewed-by: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Commit-Queue: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Cr-Commit-Position: refs/heads/master@{#612512}
2018-11-30 01:58:11 +00:00
e87ed71f68 Disable lazyload when downloading an offline page
This CL creates a bool in WebSettings to enable lazyloading of frames and images.
The bool is populated by WebContentsDelegate which offline pages listens to and
disables lazy loading.

Bug: 701884
Change-Id: I1ad1776adf3f9c7e6a8a3a68507aa9dc419e3955
Reviewed-on: https://chromium-review.googlesource.com/c/1352817
Commit-Queue: rajendrant <rajendrant@chromium.org>
Reviewed-by: Kinuko Yasuda <kinuko@chromium.org>
Reviewed-by: Peter Williamson <petewil@chromium.org>
Cr-Commit-Position: refs/heads/master@{#612507}
2018-11-30 01:55:00 +00:00
da4a238458 Revert "Reland "[Accessibility] Volume slider reads out level in percentages.""
This reverts commit faf5cdcc8d.

Reason for revert:

Findit (https://goo.gl/kROfz5) identified CL at revision 612469 as the
culprit for flakes in the build cycles as shown on:
https://findit-for-me.appspot.com/waterfall/flake/flake-culprit?key=ag9zfmZpbmRpdC1mb3ItbWVyQwsSDEZsYWtlQ3VscHJpdCIxY2hyb21pdW0vZmFmNWNkY2M4ZDJkODkwMDAzMzY5MmZhODYzNDAzYTE2ZTkwOTBjOQw

Sample Failed Build: https://ci.chromium.org/buildbot/chromium.chromiumos/linux-chromeos-rel/16665

Sample Failed Step: single_process_mash_content_browsertests

Sample Flaky Test: DumpAccessibilityTreeTest.AccessibilityVideoControls

Original change's description:
> Reland "[Accessibility] Volume slider reads out level in percentages."
> 
> This is a reland of cf0717195e
> 
> Original change's description:
> > [Accessibility] Volume slider reads out level in percentages.
> >
> > This CL makes it such that the volume level is read out as a percentage
> > in aria. This CL also amplifies how the accessibility information is
> > given to aria, by setting attributes instead of explicitly creating
> > accessibility nodes.
> >
> > Bug: 905024
> > Change-Id: I0ee5a91215669f39c7394d3c8f113ae83a74cf00
> > Reviewed-on: https://chromium-review.googlesource.com/c/1337298
> > Reviewed-by: Nico Weber <thakis@chromium.org>
> > Reviewed-by: Dominic Mazzoni <dmazzoni@chromium.org>
> > Reviewed-by: Mounir Lamouri <mlamouri@chromium.org>
> > Commit-Queue: CJ DiMeglio <lethalantidote@chromium.org>
> > Cr-Commit-Position: refs/heads/master@{#612160}
> 
> TBR=mlamouri@chromium.org, dmazzoni@chromium.org, thakis@chromium.org
> 
> Bug: 905024
> Change-Id: Ie35c05c274dfd36f3e9ec0a32b587a98a62249d9
> Reviewed-on: https://chromium-review.googlesource.com/c/1356007
> Reviewed-by: CJ DiMeglio <lethalantidote@chromium.org>
> Commit-Queue: CJ DiMeglio <lethalantidote@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#612469}

Change-Id: Icc1f84da3c66189f0d3b30108e0ab4330d4061f5
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: 905024, 910442
Reviewed-on: https://chromium-review.googlesource.com/c/1356137
Cr-Commit-Position: refs/heads/master@{#612501}
2018-11-30 01:51:47 +00:00
78cf66bdaa Replace SiteInstance::IsSameWebSite() with a new non-static method.
Currently, SiteInstance::IsSameWebSite() is static and will need to be
modified to support dynamic isolated origins.  Those origins will
apply only to future BrowsingInstances, meaning the answer to
IsSameWebSite will depend on which frame/SiteInstance is asking this
question.  This CL replaces this method with a non-static
SiteInstance::IsSameSiteWithURL method.  This will ensure that the
internal implementation will be able to provide sufficient context
(i.e., BrowsingInstance info) in the future, without having to expose
that context outside of content/.  Note that the content-internal
version of this call, SiteInstanceImpl::IsSameWebSite, stays as-is for
now.

The only two non-test uses of this were in NaCl code.  They were
checking whether the current SiteInstance's site URL is same-site with
the URL of the NaCl file to be loaded, with both URLs expected to be
extension URLs.  There should be no behavior change in these, as the
underlying implementation doesn't change.

A few tests are also refactored to either avoid using IsSameWebSite
entirely, or, for tests inside content/, to use the internal version
of IsSameWebSite.

Bug: 905513
Change-Id: Ia2957bb1ec7a16de8c3d18ef167149f1f5a08066
Reviewed-on: https://chromium-review.googlesource.com/c/1352856
Reviewed-by: Avi Drissman <avi@chromium.org>
Reviewed-by: François Doray <fdoray@chromium.org>
Reviewed-by: Derek Schuff <dschuff@chromium.org>
Reviewed-by: Łukasz Anforowicz <lukasza@chromium.org>
Commit-Queue: Alex Moshchuk <alexmos@chromium.org>
Cr-Commit-Position: refs/heads/master@{#612495}
2018-11-30 01:49:30 +00:00
da02fb9b37 Fuchsia: Moved SandboxPolicyFuchsia to service/service_manager/sandbox
This will allow to reuse the class in //webrunner when starting context
process.

Bug: 861853
Change-Id: I499850a7ba8df4b73e5f71b6a61568a5cfca1e6b
Reviewed-on: https://chromium-review.googlesource.com/c/1355764
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Reviewed-by: Wez <wez@chromium.org>
Reviewed-by: Charlie Reis <creis@chromium.org>
Commit-Queue: Sergey Ulanov <sergeyu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#612494}
2018-11-30 01:48:30 +00:00
4713ee490a Refactors TtsPlatform and most platform implementations to content.
In Chrome OS and Android, the TTS platform implementation needs to
stay in chrome.

Bug: 517317
Change-Id: I09858ce1edc412dd5d0d53abc3fab645fece6a8a
Reviewed-on: https://chromium-review.googlesource.com/c/1352055
Reviewed-by: John Abd-El-Malek <jam@chromium.org>
Reviewed-by: Dominic Mazzoni <dmazzoni@chromium.org>
Commit-Queue: Katie Dektar <katie@chromium.org>
Cr-Commit-Position: refs/heads/master@{#612493}
2018-11-30 01:48:27 +00:00
d2ad0f87db Reland "[Media Session] [2/4] Move Metadata to service"
This is a reland of 0475617fe9

Binary-Size: Adding duplicate classes that will be removed
in https://crrev.com/c/1241554

TBR=mlamouri@chromium.org,tedchoc@chromium.org

Original change's description:
> [Media Session] [2/4] Move Metadata to service
>
> This CL moves any existing uses in Android of MediaMetadata
> to the new version in the media_session service.
>
> BUG=875004
>
> Binary-Size: Adding duplicate classes that will be removed
> in https://crrev.com/c/1241554
>
> Change-Id: I8ed9afd45a37e515ae89d5d82a542a6f4c139136
> Reviewed-on: https://chromium-review.googlesource.com/c/1241466
> Commit-Queue: Becca Hughes <beccahughes@chromium.org>
> Reviewed-by: Ted Choc <tedchoc@chromium.org>
> Reviewed-by: Mounir Lamouri <mlamouri@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#605498}

Bug: 875004
Change-Id: I4689ac36b9dcf6b0582d4789016e238811b498e2
Reviewed-on: https://chromium-review.googlesource.com/c/1318809
Reviewed-by: Becca Hughes <beccahughes@chromium.org>
Commit-Queue: Becca Hughes <beccahughes@chromium.org>
Cr-Commit-Position: refs/heads/master@{#612490}
2018-11-30 01:46:20 +00:00
291c54a787 [IndexedDB]: Implement explicit commit() in renderer
Implementing an explicit commit function for the IndexedDB Transaction API.
The addition of this API allows developers to preempt IndexedDB's autocommit
functionality by sending their own explicit commit signal.

Explainer: https://andreas-butler.github.io/idb-transaction-commit/EXPLAINER
Bug: https://bugs.chromium.org/p/chromium/issues/detail?id=898257
Change-Id: I5e8bdc697052139d014757408d9a7f2b6367655b
Reviewed-on: https://chromium-review.googlesource.com/c/1300055
Commit-Queue: Andreas Butler <andreasbutler@google.com>
Reviewed-by: Kinuko Yasuda <kinuko@chromium.org>
Reviewed-by: Victor Costan <pwnall@chromium.org>
Reviewed-by: Daniel Murphy <dmurph@chromium.org>
Cr-Commit-Position: refs/heads/master@{#612474}
2018-11-30 00:34:26 +00:00
faf5cdcc8d Reland "[Accessibility] Volume slider reads out level in percentages."
This is a reland of cf0717195e

Original change's description:
> [Accessibility] Volume slider reads out level in percentages.
>
> This CL makes it such that the volume level is read out as a percentage
> in aria. This CL also amplifies how the accessibility information is
> given to aria, by setting attributes instead of explicitly creating
> accessibility nodes.
>
> Bug: 905024
> Change-Id: I0ee5a91215669f39c7394d3c8f113ae83a74cf00
> Reviewed-on: https://chromium-review.googlesource.com/c/1337298
> Reviewed-by: Nico Weber <thakis@chromium.org>
> Reviewed-by: Dominic Mazzoni <dmazzoni@chromium.org>
> Reviewed-by: Mounir Lamouri <mlamouri@chromium.org>
> Commit-Queue: CJ DiMeglio <lethalantidote@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#612160}

TBR=mlamouri@chromium.org, dmazzoni@chromium.org, thakis@chromium.org

Bug: 905024
Change-Id: Ie35c05c274dfd36f3e9ec0a32b587a98a62249d9
Reviewed-on: https://chromium-review.googlesource.com/c/1356007
Reviewed-by: CJ DiMeglio <lethalantidote@chromium.org>
Commit-Queue: CJ DiMeglio <lethalantidote@chromium.org>
Cr-Commit-Position: refs/heads/master@{#612469}
2018-11-30 00:25:26 +00:00
72a4baa716 Stop using AudioRendererSinkCache for AudioRendererMixerManager.
This is part 3/4 CLs to move the <audio>/<video> elements off of
a synchronous API that can lead to renderer hangs and premature
audio renderer errors.

This moves the AudioRendererSinkCache from AudioRendererMixerManger
to a base::NoDestructor instance in AudioDeviceFactory and stops
ARMM from using the cache at all. The users remaining are WebAudio
and WebRTC, we can reevaluate metrics on keeping it after.

Due to base::(SingleThread|Sequenced)TaskRunner::Get() being
deprecated for content/ I've had to switch to use base::PostTask to
generate a cleanup task runner. Unfortunately this doesn't guarantee
that it runs on the render thread, but since we're now using a static
instance, we can just always use base::Unretained and drop the WeakPtr
factory that was handling the cancellation of these tasks.

There's no point in the cache for ARMM since we're going to require
a sink to get a mixer. That sink will always be used to get output
device info first too and then reused for the mixer.

BUG=905506
TEST=updated tests, compiles.
R=olka

Change-Id: I03408753f974e4c6fb9c89270508e26689162002
Reviewed-on: https://chromium-review.googlesource.com/c/1347730
Commit-Queue: Dale Curtis <dalecurtis@chromium.org>
Reviewed-by: Olga Sharonova <olka@chromium.org>
Cr-Commit-Position: refs/heads/master@{#612460}
2018-11-30 00:17:03 +00:00
e70dc7a2d7 Use mirror window occlusion state to update webcontent visibility
This patch makes WebContentsViewAura manage its web content's visibility
state based on its current mirror window's occlusion state. To achieve
this, the patch makes the following changes:
 - Adds a new callback in WindowObserver to receive occlusion state
   changes.
 - Creates a subclass of aura::WindowObserver to manage mirror window
   occlusion states for the WebContentsViewAura.
 - Replaces a DCHECK with an early return when an already tracked window
   is requested to be tracked again.
 - Replaces the boolean window property of mirror window with a vector
   list of mirror windows.
 - Updates the unittest and adds a new method to WindowTestApi.

Bug: 901555
Change-Id: I70566c544def6129c7410af84f91e6501a5479d5
Component: Window Mirror View, web contents, Window occlusion tracker
Reviewed-on: https://chromium-review.googlesource.com/c/1313753
Reviewed-by: Scott Violet <sky@chromium.org>
Reviewed-by: François Doray <fdoray@chromium.org>
Commit-Queue: Malay Keshav <malaykeshav@chromium.org>
Cr-Commit-Position: refs/heads/master@{#612457}
2018-11-30 00:15:06 +00:00
6df9a31096 Adding service name as utility process crash key
(Could not use crash_reporter due to deps restrictions)

Bug: 866830
Change-Id: Ia3cc17720d0d375c4a8536412df2cafb426167b1
Reviewed-on: https://chromium-review.googlesource.com/c/1355099
Commit-Queue: Olga Sharonova <olka@chromium.org>
Reviewed-by: Ken Rockot <rockot@google.com>
Reviewed-by: Alex Moshchuk <alexmos@chromium.org>
Cr-Commit-Position: refs/heads/master@{#612424}
2018-11-29 23:18:09 +00:00
a4ba7e504d Make more explicit the RenderFrame override of visibility to kPrerender
It doesn't override to arbitrary things, so let the RenderViewImpl have
a better idea what is going on by only asking for a bool to use
kPrerender visibility instead of shown/hidden.

This will help us allow the RenderViewImpl to control the visibility
of the RenderWidgets.

R=dcheng@chromium.org

Change-Id: I8b4bc4a8fd969c1c2e6a4c90f1269a5d41b41ba6
Bug: 908582
Reviewed-on: https://chromium-review.googlesource.com/c/1355773
Commit-Queue: danakj <danakj@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Avi Drissman <avi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#612422}
2018-11-29 23:04:31 +00:00
8941aad938 Pipe local_state into ChromeDataUseMeasurement.
This removes the dependency ChromeDataUseMeasurement has on
g_browser_process (when kNetworkService is enabled) and fixes a
crash when starting in service-manager-only mode.

Bug: 902791
Change-Id: I0ed11f4735f4494247a7c17767b53aab695d0f14
Reviewed-on: https://chromium-review.googlesource.com/c/1334334
Reviewed-by: John Abd-El-Malek <jam@chromium.org>
Reviewed-by: Min Qin <qinmin@chromium.org>
Reviewed-by: rajendrant <rajendrant@chromium.org>
Commit-Queue: Henrique Nakashima <hnakashima@chromium.org>
Cr-Commit-Position: refs/heads/master@{#612421}
2018-11-29 23:01:53 +00:00
1d979043f0 macOS Sandbox: Port fontloading test to V2 sandbox.
This removes all of the obsolete unit testing code from the V1 sandbox.

Bug: 902597
Change-Id: I426e3b815e0bf23036815750aab350adbb22e068
Reviewed-on: https://chromium-review.googlesource.com/c/1327527
Commit-Queue: Greg Kerr <kerrnel@chromium.org>
Reviewed-by: Robert Sesek <rsesek@chromium.org>
Cr-Commit-Position: refs/heads/master@{#612416}
2018-11-29 22:53:06 +00:00
448f584928 Revert change preferring LayoutTreeBuilder tree, and dependent changes.
Original reviews:
https://chromium-review.googlesource.com/c/chromium/src/+/1206050
https://chromium-review.googlesource.com/c/chromium/src/+/1242572
https://chromium-review.googlesource.com/c/chromium/src/+/1345714

TBR=dmazzoni@chromium.org

Bug: 906310, 908916
Change-Id: Ie56e5030db4bb3039816c5d5d9576279435835e6
Reviewed-on: https://chromium-review.googlesource.com/c/1353062
Reviewed-by: Dominic Mazzoni <dmazzoni@chromium.org>
Reviewed-by: Alice Boxhall <aboxhall@chromium.org>
Commit-Queue: Alice Boxhall <aboxhall@chromium.org>
Cr-Commit-Position: refs/heads/master@{#612411}
2018-11-29 22:35:26 +00:00
c4db771a58 Make authorization timeout provided to AudioOutputDevice configurable.
This is part 2/4 CLs to move the <audio>/<video> elements off of
a synchronous API that can lead to renderer hangs and premature
audio renderer errors.

Specifically this will allow us to create AudioRendererMixerInputs
with an authorization timeout of zero when the asynchronous API
is the only one in use.

BUG=905506
TEST=compiles.
R=olka

Change-Id: I298550db1e7bac9b73033566c17cff8f1d2252b3
Reviewed-on: https://chromium-review.googlesource.com/c/1347146
Commit-Queue: Dale Curtis <dalecurtis@chromium.org>
Reviewed-by: Olga Sharonova <olka@chromium.org>
Cr-Commit-Position: refs/heads/master@{#612400}
2018-11-29 22:13:18 +00:00
ea36de23a2 [service-manager] Delete the ServiceTest framework
This deletes all code supporting the deprecated ServiceTest framework
and also cleans up a bunch of superfluous dependencies on service stuff
around the tree.

TBR=sky@chromium.org

Bug: 906239
Change-Id: I56db6c5a4c1d0ffab1be5dde08692383c424d5b6
Reviewed-on: https://chromium-review.googlesource.com/c/1354507
Commit-Queue: Ken Rockot <rockot@google.com>
Reviewed-by: Oksana Zhuravlova <oksamyt@chromium.org>
Cr-Commit-Position: refs/heads/master@{#612389}
2018-11-29 21:49:20 +00:00
df9f8d87ab Reduce DelegatedFrameHost NOTIMPLEMENTED Calls
RenderWidgetHostViewMac explicitly sets NeedsBeginFrames upon startup.
This was setup to address some race condition.

However this is not handled by the browser process when Viz Display
Compositor is enabled. DelegatedFrameHost is spamming debug logs with
NOTIMPLEMENTED messages as a result.

All other paths to this is already checking the Viz status and not
calling in. Once Viz has launched we'll remove this legacy path.

This change updates RenderWidgetHostViewMac to not explicitly set
NeedsBeginFrames upon startup when Viz Display Compositor is
enabled.

Bug: 907246
Change-Id: I9a584c4bedcdb1da897f8155eb151ff63ef3c8b2
Reviewed-on: https://chromium-review.googlesource.com/c/1355479
Reviewed-by: Kenneth Russell <kbr@chromium.org>
Reviewed-by: ccameron <ccameron@chromium.org>
Commit-Queue: Jonathan Ross <jonross@chromium.org>
Cr-Commit-Position: refs/heads/master@{#612386}
2018-11-29 21:47:25 +00:00
8dfddfccbd Check AllowStartingServiceManagerOnly in ServiceManagerStartupUtils.
AllowStartingServiceManagerOnly already gates starting the service
manager early in the native code. Make the Java code check the flag
too.

Bug: 899225,899226
Change-Id: Iadc7d03b4e3b559815a72de66ff249f2ad36bbbb
Reviewed-on: https://chromium-review.googlesource.com/c/1318362
Reviewed-by: John Abd-El-Malek <jam@chromium.org>
Reviewed-by: Ken Rockot <rockot@google.com>
Reviewed-by: Xi Han <hanxi@chromium.org>
Reviewed-by: Yaron Friedman <yfriedman@chromium.org>
Commit-Queue: Henrique Nakashima <hnakashima@chromium.org>
Cr-Commit-Position: refs/heads/master@{#612380}
2018-11-29 21:44:07 +00:00
1664cc28ea Move Google code out of third_party/.
In https://codereview.chromium.org/2674002, Google code was put into
the third_party/mozilla/NSPasteboard+Utils.h|mm files. This was not
imported code from Mozilla and did not belong there.

This utility code is moved into a Chromium file (with slight
modernization.)

The lawyers have approved this.

BUG=none
TEST=no visible change intended

Change-Id: Icf3a91d10d7d52757b7dd220b2703acf3ff45b4d
Reviewed-on: https://chromium-review.googlesource.com/c/1355525
Reviewed-by: Leonard Grey <lgrey@chromium.org>
Commit-Queue: Avi Drissman <avi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#612379}
2018-11-29 21:43:39 +00:00
d973a55b79 Implement OOPIF double-tap-zoom.
This CL adds the required pathways to support double-tap-zoom for OOPIF.

1) Modifies WebFrameWidgetImpl to get the box_bounds of the double-
   tapped element, and
2) sends the tapped point and box_bounds to the browser, where
3) RenderFrameHostImpl transforms them into root-view coordinates, and
4) sends them to the renderer via the main-frame's RenderViewHostImpl.
5) From there RenderViewImpl invokes WebViewImpl's
   AnimateDoubleTapZoom.

Bug: 734209
Change-Id: Ic55afb6154356d676872ced93f64a243190cf289
Reviewed-on: https://chromium-review.googlesource.com/c/1298081
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Ken Buchanan <kenrb@chromium.org>
Reviewed-by: David Bokan <bokan@chromium.org>
Commit-Queue: James MacLean <wjmaclean@chromium.org>
Cr-Commit-Position: refs/heads/master@{#612371}
2018-11-29 21:39:13 +00:00
9f832ef137 fido: add the unhashed AppID to CtapGetAssertionRequest
This changes CtapGetAssertionRequest to carry the unhashed AppID rather only
its hashed form, the "Alternative Application Parameter". The unhashed value
is passed to the Windows WebAuthn API for U2F sign requests.

Bug: 898718
Change-Id: I2d9e6b80463859adba9a786e0c478c9d63e4164b
Reviewed-on: https://chromium-review.googlesource.com/c/1354689
Commit-Queue: Martin Kreichgauer <martinkr@chromium.org>
Reviewed-by: Adam Langley <agl@chromium.org>
Cr-Commit-Position: refs/heads/master@{#612349}
2018-11-29 20:58:27 +00:00
3a393aebc4 Updating XTBs based on .GRDs from branch master
R=kariah@chromium.org

Change-Id: I410f2c3c78edc2ef684dbd8fce935dbdb50be14b
Reviewed-on: https://chromium-review.googlesource.com/c/1355851
Reviewed-by: Krishna Govind <govind@chromium.org>
Cr-Commit-Position: refs/heads/master@{#612348}
2018-11-29 20:58:00 +00:00
95164f376d Add Support for Random Mojo Message Delays
Adds periodic pausing/resuming of random mojo bindings, to test whether Mojo users are relying on FIFO ordering of messages sent over different message pipes.

Bug: 830815
Change-Id: Ie765813235a6ff720b2c4c3be550ad474b7be566
Reviewed-on: https://chromium-review.googlesource.com/c/1325551
Commit-Queue: Matthew Denton <mpdenton@chromium.org>
Reviewed-by: Gabriel Charette <gab@chromium.org>
Reviewed-by: Ken Rockot <rockot@google.com>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/master@{#612321}
2018-11-29 19:41:52 +00:00
4b985559dc Revert "Alias the url for webui code with network service to get more information in debugging the crash."
This reverts commit 660d336d76.

Got the information I needed.

Original change's description:
> Alias the url for webui code with network service to get more information in debugging the crash.
> 
> Bug: 891074
> Change-Id: I8904c8d0285b8b2f245456509d88206f4789fc8d
> Reviewed-on: https://chromium-review.googlesource.com/c/1330064
> Reviewed-by: Reilly Grant <reillyg@chromium.org>
> Commit-Queue: John Abd-El-Malek <jam@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#606965}

TBR=jam@chromium.org,reillyg@chromium.org

# Not skipping CQ checks because original CL landed > 1 day ago.

Bug: 891074
Change-Id: Id739d25531997bcdacafa5c49a13bfd849edd32a
Reviewed-on: https://chromium-review.googlesource.com/c/1355430
Reviewed-by: John Abd-El-Malek <jam@chromium.org>
Commit-Queue: John Abd-El-Malek <jam@chromium.org>
Cr-Commit-Position: refs/heads/master@{#612316}
2018-11-29 19:30:48 +00:00
9efc6c3eff Reland "Update BrowsingDataRemoverBrowserTest to include MediaLicenses"
Original change's description:
> MediaLicenses can be cleared from the ClearBrowsingData dialog, so update the
> BrowsingDataRemoverBrowserTest to check them as well. This uses the test-only
> External Clear Key CDM to store the license in the file system, if it is
> available.
>
> The original CL was flaky due to Mac's only saving file timestamps to
> second granularity. As a result it was possible for the newly created license
> to be saved with a timestamp prior to the current actual time, and deleting
> "old" licenses would include it in the deletion. Change is to wait for some
> time on Macs only to ensure that the "new" license has a later timestamp.

This reverts commit b6bfa2b7f9.

BUG=808690
TEST=new browser_tests pass

Change-Id: Iad919ec23bf157a9bc4af3e6d54af2b28fdc217e
Reviewed-on: https://chromium-review.googlesource.com/c/1354498
Reviewed-by: Christian Dullweber <dullweber@chromium.org>
Commit-Queue: John Rummell <jrummell@chromium.org>
Cr-Commit-Position: refs/heads/master@{#612301}
2018-11-29 19:14:18 +00:00
218c5ce593 Use NetworkContext to queue reports.
Bug: 903948
Change-Id: Ida8e955b212f26c9938a43cb196d9f90aac3404b
Reviewed-on: https://chromium-review.googlesource.com/c/1351098
Commit-Queue: John Abd-El-Malek <jam@chromium.org>
Reviewed-by: John Abd-El-Malek <jam@chromium.org>
Cr-Commit-Position: refs/heads/master@{#612271}
2018-11-29 18:03:13 +00:00