Skip to content
This repository has been archived by the owner on Apr 3, 2020. It is now read-only.

Add gyp flag disable_logging to conditionally disable LOG()/VLOG()/CHECK() for Release build #242

Open
wants to merge 263 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
263 commits
Select commit Hold shift + click to select a range
7f79bcb
[Ozone-Dri] Gracefully handle DRM devices with no resources
Feb 24, 2015
77ae0e3
Incrementing VERSION to 42.0.2311.10
Feb 24, 2015
d2e4b7c
Context menu to view original image when Data Saver is being used.
Feb 24, 2015
9702576
Work around bug in generate_policy_source.py to fix several policies.
thiemonagel Feb 24, 2015
4bda951
Merge 317853 - Make BackgroundContentsService start up BackgroundCont…
Feb 24, 2015
bec75be
Disable alpha, translate animations in the app menu for ICS.
Feb 24, 2015
33b73a4
Disable the autofill/wallet settings in chrome://settings/autofill
Feb 24, 2015
f5e34b3
Hide Autofill/Wallet preferences on Android.
Feb 24, 2015
30b5cac
Android Chromoting: Remove title and add navigation button to disconnect
Feb 24, 2015
bfd5d82
[Push] Enable PushManager.hasPermission() in browser tests.
mounirlamouri Feb 25, 2015
8be8b38
aw: Fix selection handle hit testing
Feb 25, 2015
f95981f
Revert of Fixes for two different HUD issues related to win32k lockdo…
sgraham Feb 25, 2015
a73f6f8
Merge "Update the notification status-bar icons."
beverloo Feb 25, 2015
24aaf50
Ensure streams aren't intercepted unless their associated plugin is e…
Feb 25, 2015
dc769c1
Incrementing VERSION to 42.0.2311.11
Feb 26, 2015
eef6897
Fix left/right keyboard scrolling in PDFs
Feb 26, 2015
41d95e3
Correctly whitelist the PDF plugin in the PDF extension.
sammc Feb 26, 2015
bc9f26a
Merge "cros: Fix EasyUnlockServiceSignin::OnUserDataLoaded crash."
Feb 26, 2015
61c27c9
Merge: Update the Drive state in Files app when the refresh token is …
mtomasz-chromium Feb 26, 2015
1237422
Restore L3 support on CrOS when the media permission is denied.
Feb 26, 2015
a9e2fbc
Proper focus input field instead of whole pod
dpolukhin Feb 26, 2015
873db69
Make ChromeBookmarkClient::CanSetPermanentNodeTitle say true for the …
Feb 26, 2015
b0e4b97
Add F13 - F24 for evdev/xkb to scan code table.
Feb 26, 2015
44c40b2
ozone: evdev: Keep track of settings & apply to new devices
mspang Feb 26, 2015
417ae4e
Files.app: Fix task cancellation.
DaddingtonPalace Feb 26, 2015
ef10f3c
Updating XTBs based on .GRDs from branch 2311
Feb 26, 2015
41afc82
Making Chromoting use no GPO provider in PolicyLoaderWin.
jamiewalch Feb 26, 2015
37cee9f
Report Promise error-context strings to GA.
DaddingtonPalace Feb 26, 2015
95335ac
Shrink space required by history log file
DaddingtonPalace Feb 26, 2015
3415626
Compile shader upon deletion if attached.
Feb 26, 2015
16e8996
Files.app: Fix a bug in content hash computation.
DaddingtonPalace Feb 26, 2015
e078ba0
Merge 317490 "Handle 'cenc' Initialization Data Type in Clear Key."
jrummell-chromium Feb 26, 2015
b8655e0
Incrementing VERSION to 42.0.2311.12
Feb 27, 2015
134dac9
QUIC - Cache the connection type and connection description. Make the
Feb 27, 2015
d29eb5e
[android] Handle unknown country codes.
rsolomakhin Feb 27, 2015
b435753
Plugin Power Saver: Fix PluginPreroller outliving the PluginInstanceT…
Feb 27, 2015
fc9ff20
Handle the notification settings intent.
mvano Feb 27, 2015
63e858a
Autofill: Disable autofill for fields outside of forms.
Feb 27, 2015
d36c2a2
Files.app: Disable the cloud import notification for active g+ photos…
DaddingtonPalace Feb 27, 2015
22cd68a
Ensure the destination url reported to ImportHistory is correctly enc…
DaddingtonPalace Feb 27, 2015
70d94cc
Incrementing VERSION to 42.0.2311.13
Feb 28, 2015
7688a94
Fix crash on app list start page contents not existing.
nik3daz Mar 2, 2015
71476f2
Fixed launcher prompting for "Ok Google" when hotwording disabled.
mgiuca Mar 2, 2015
12a7bf3
Incrementing VERSION to 42.0.2311.14
Mar 2, 2015
068e47b
Blacklist GPU raster and canvas on all PowerVR SGX.
alexelias Mar 2, 2015
6aa5915
Revert "Gallery: Remove 2x mouse cursor assets temporary."
hirono-chromium Mar 2, 2015
1d64e6f
Add new demo applications to the public session white list.
hirono-chromium Mar 2, 2015
3404f3d
Fix JS errors of FileTransferController.
hirono-chromium Mar 2, 2015
d60cfb2
Gallery: Stop to create EXIF thumbanil if the original images are eno…
hirono-chromium Mar 2, 2015
c6e4dc0
Files.app: Let MetadataCacheSet#hasFreashCache return true for empty …
hirono-chromium Mar 2, 2015
ebc26b0
Files.app: Make delete button on the toolbar standard button instead …
Mar 2, 2015
9e26502
Files.app: Use <button> instead of <paper-button> to make ENTER and S…
Mar 2, 2015
f99670e
Files.app: Stop reusing items' DOM in grid view.
hirono-chromium Mar 2, 2015
04cf4a0
Rename for js pod description to LegacySupervisedUser finished. To me…
Mar 2, 2015
e294adc
Js fixed for proper status setting on HID screen. To merge into M42.
Mar 2, 2015
e7ac503
Add UMA to track permission changes from the content settings menu
miguelgarciaarribas Mar 2, 2015
f3f16d1
Push API: Workaround for GCM lowercasing subtypes
miguelgarciaarribas Mar 2, 2015
2ae5bc6
2311: Remove Incognito notification when closeAllTabs() called
Mar 2, 2015
563d64c
App banner requires image/png icon. Really.
mounirlamouri Mar 2, 2015
f7cf633
Avoid starting RapporService during tests
Mar 2, 2015
1937bab
Fix MetricsServicesManagerTest
Mar 2, 2015
dfd376c
Pepper: Allow DidCreate to safely delete the plugin instance
davemichael Mar 2, 2015
6c065c7
Fix alignment format in multiline mode
mitoshima Mar 2, 2015
8eb6989
Throttle script request incidents to one per user.
GregTho Mar 2, 2015
11a4e6d
Use RenderText directly to draw tooltip to imporove format and perfor…
mitoshima Mar 2, 2015
316b588
ozone: evdev: Release pressed keys when event filtering starts
mspang Mar 2, 2015
ed48a93
[New Tab Page] Remove title iframe 1px dead zone.
samuelhuang Mar 2, 2015
d01bfde
QUIC - Added a histogram to collect the elapsed time between the end of
Mar 2, 2015
12fde60
Update column focus in chrome://downloads so it's not lost
hcarmona Mar 2, 2015
14a9ae0
[Ozone-Gbm] Explicitly crash if trying software rendering on GBM
Mar 2, 2015
225526d
Merge: Allow CC HUD font to be created before sandbox on Windows
wfh-chromium Mar 2, 2015
08d1d9f
Merge: Flip Win32k lockdown to enabled by default.
wfh-chromium Mar 2, 2015
24368a3
ui: Move software fallback decisions to GpuProcessTransportFactory.
danakj Mar 2, 2015
b7f6179
ui: Always set layer bounds when changing to show texture content.
danakj Mar 2, 2015
b5b0c10
Revert "ui: Move software fallback decisions to GpuProcessTransportFa…
danakj Mar 3, 2015
16b3097
Fix Virtual Keyboard not being deployed in TouchView mode on Ozone.
Mar 3, 2015
23291e9
Incrementing VERSION to 42.0.2311.15
Mar 3, 2015
ebc6eac
Merge: content: Disable ChildDiscardableSharedMemoryManager browser t…
wfh-chromium Mar 3, 2015
35feed7
Merge: Allow offsets in blobs larger than 2GB on 32 bit Chromium builds.
mtomasz-chromium Mar 3, 2015
8eb167d
Force glFinish for page flips on a UDL device.
hshi-chromium Mar 3, 2015
0489677
Incrementing VERSION to 42.0.2311.16
Mar 3, 2015
b6e0e1c
Settings: Make the manage-profile overlay wider to fit the icons in it.
Mar 3, 2015
e2ea010
Merge: Only take basename of default_file_name when starting a File C…
wfh-chromium Mar 3, 2015
231999c
Bring up fast user switcher on right-click of the avatar menu on Mac.
Mar 3, 2015
636bc8a
Remove one pixel line in the fast user switcher appearance when there…
Mar 3, 2015
31ef0ec
Fix favicon padding in Site Settings on pre-L devices.
Mar 3, 2015
388eacc
Merge: Fix unit tests on official bots.
wfh-chromium Mar 3, 2015
b5a284a
[Document mode] Keep tab ID list in sync with Tab entries
Mar 3, 2015
1ece12b
Fix crashes on ICS.
Mar 3, 2015
7ed3e56
Merge to M42: Fix a case where AXTreeSerializer didn't handle reparen…
minorninth Mar 3, 2015
97f59e9
Added isSyncingUrlsWithKeystorePassphrase.
Mar 3, 2015
9a6fd17
Fix the Fast User Switcher in the Windows Native frame.
Mar 3, 2015
0dff61b
gpu: Avoid detaching images with glTexSubImage2D
Mar 3, 2015
b5b5a39
ChannelMojo: Reduce the number of dup() call
omo Mar 3, 2015
af6bcfd
ChannelMojo should use PID from the bootstrap Channel.
omo Mar 3, 2015
25ce525
Merge M-42: Move device-log UI strings to generated_resources
reillyeon Mar 3, 2015
622dff9
Use a stable device-user identifier for CryptAuth enrollments.
Mar 3, 2015
7abcdef
Incrementing VERSION to 42.0.2311.17
Mar 3, 2015
795108f
Add WiMAX to ONC validation list
stevenjb Mar 3, 2015
6b37623
[GCM] Fixing the problem of passing linked_ptr across threads
fgorski Mar 3, 2015
843dffa
[Ozone-Dri] Set DPMS when configuring displays and remove ForceDPMSOn
Mar 3, 2015
85d03fe
Incrementing VERSION to 42.0.2311.18
Mar 4, 2015
149298b
Merge: Fix aborting in throttled file system (FSP).
mtomasz-chromium Mar 4, 2015
aea6c09
Make sure content offset gets updated
galmacky Mar 4, 2015
1e3e9b2
Use own GLHelper for surfaceless, the default one is on a different c…
Mar 4, 2015
2a561db
Incrementing VERSION to 42.0.2311.19
Mar 4, 2015
37f7359
Leave ImportantFileWriter::WriteFileAtomically argument info in the s…
Mar 4, 2015
8cbc91d
Files.app: Introduce check-select mode.
Mar 4, 2015
c23a60d
ServiceWorker: Use scheduler's default task queue for posting tasks o…
irori Mar 4, 2015
548e4b3
Fix sort order of unlaunched apps on app list start page.
mgiuca Mar 4, 2015
ea2e36e
Correctly handle tab navigation in the app list.
mgiuca Mar 4, 2015
b9d025f
Refactor codes to run only the bitmap converting logic in background
galmacky Mar 4, 2015
b223f76
Fix typo in histogram name.
tommynyquist Mar 4, 2015
c56eec4
Don't show request dialog for active permissions.
dpolukhin Mar 4, 2015
d9c4221
Kiosk mode: SetFirstLoginPrefs() should be called for kiosk sessions.
Mar 4, 2015
172d6a5
Make combined native/manual JNI registration work for clang.
tornewuff Mar 4, 2015
242cc42
[Android] Cache function templates in GinJavaBridgeObject to avoid me…
Mar 4, 2015
3bed0a3
Revert "[Android] Fix a flicker in stopping Chrome"
galmacky Mar 4, 2015
4e61c53
Cherry pick HarfBuzz reverse_range fix
eaenet Mar 4, 2015
ee415df
Disable VideoDecoder renderer in M42 chrome.
SergeyUlanov Mar 4, 2015
f7f00f9
Incrementing VERSION to 42.0.2311.20
Mar 4, 2015
a310715
QUIC - Add a field trial not to load QUIC server information from the
Mar 4, 2015
de28ac5
Exit HTML Fullscreen when browser fullscreen is active.
Mar 4, 2015
2bed898
Show AboutChromePreferences "updates no longer supported" warning
Mar 4, 2015
faf8040
Add support for direct download of the SRT.
Mar 4, 2015
f03cba2
Remove HRD butterbar and disable HRD background service
Mar 4, 2015
a087aaf
Incrementing VERSION to 42.0.2311.21
Mar 5, 2015
3469a96
ozone: evdev: Sync caps lock LED state to evdev
mspang Mar 5, 2015
da311d3
Incrementing VERSION to 42.0.2311.22
Mar 5, 2015
157ce21
Delete all uses of SpeechManager from the app list start page.
akmistry Mar 5, 2015
97bfd43
Allow mimeHandlerViewGuestInternal on stable channel.
sammc Mar 5, 2015
e5a14ee
Handle sync changes on the Start Page tiles while context menus are s…
tapted Mar 5, 2015
2532182
Fix hiding behavior when creating app windows.
jackhou-chromium Mar 5, 2015
a4a2c2e
Merge "kiosk: Ensure launching latest version."
Mar 5, 2015
519e57c
[Android WebView] Synthesize a fake page loading event on page source…
Mar 5, 2015
e46ee3f
Incrementing VERSION to 42.0.2311.23
Mar 5, 2015
79b6381
Transfer v8 snapshot files as file descriptors to child processes on …
rmcilroy Mar 5, 2015
f5eff35
[Contextual Search] Add more node checks before triggering.
Mar 5, 2015
be6992e
Fix bug that AddBookmarks returns partner bookmark node
Mar 5, 2015
1faa0d0
Fix crash on certain devices when showing week and month picker.
Mar 5, 2015
37b9e01
Mac: Fix bookmark button drawing regression
Mar 5, 2015
e638bd6
Setting version to 42.0.2311.33
Mar 5, 2015
ef94f01
Don't relaunch app for non-auth errors.
jamiewalch Mar 5, 2015
5939e2a
Merging fix for crbug/456228
stanischikn Mar 5, 2015
8b2777d
Fix Launcher crash in ChromeOS guest mode.
mgiuca Mar 6, 2015
20fe469
Incrementing VERSION to 42.0.2311.34
Mar 6, 2015
f66367b
Implement ErrorScreenHandler::Hide method
Mar 6, 2015
a066654
[cros] Don't reset 'parent screen' for network UI
Mar 6, 2015
5ffd605
Wait until a new profile has been created before deleting the active …
sheepmaster Mar 6, 2015
89e4544
Files.app: Hide close button of share dialog.
hirono-chromium Mar 6, 2015
f106489
Web Notifications: close persistent notifications when dismissed by user
miguelgarciaarribas Mar 6, 2015
b86dc11
Error code: + Reinstate the error code to main content as important f…
Mar 6, 2015
fd4b5b7
Merge to branch 2311 [Password Manager] Fix password saving on Macys …
Mar 6, 2015
6f0848c
Fix bug where |i| was reused in a nested loop.
hcarmona Mar 6, 2015
d3b00b9
Disable chrome://local-state on Chrome OS.
asvitkine-chromium Mar 6, 2015
fa7f17a
Fix bump scrolling doesn't work if the app is in fullscreen mode befo…
Mar 6, 2015
fe88f5a
Merge fix to M42 (2311): SanitizeProxyAuth: Whitelist all hop-by-hop …
Mar 6, 2015
121a258
Mac: Fix crashes related to LocationBarViewMac::GetPageInfoBubblePoint
Mar 7, 2015
ea5f1f2
Incrementing VERSION to 42.0.2311.35
Mar 7, 2015
efc0682
Allow middle-click scrolling to work for PDFs and print preview
Mar 8, 2015
3f51907
Incrementing VERSION to 42.0.2311.36
Mar 9, 2015
40b4e9d
Files.app: Truncate breadcrumbs on the toolbar properly based on avai…
Mar 9, 2015
c735243
Files.app: Remove focus from toolbar buttons on click.
Mar 9, 2015
d3069e2
Fix crash in ServiceWorkerDispatcherHost
irori Mar 9, 2015
f83179b
Delete PasswordManagerBrowserTest.NoPromptOnBack from 2311
Mar 9, 2015
a96ef66
Remove check of security origin of all ancestors when getUserMedia is…
magjed Mar 9, 2015
2882687
Merge for M42 beta.
Mar 9, 2015
e81348c
Style fixes for very narrow viewports less than 320px (height / width…
Mar 9, 2015
c7d7f5d
Remove all remaining traces of chrome.infobars
Rob--W Mar 9, 2015
cbf6236
Merge: Support plugin version mid-portions with leading zeros.
wfh-chromium Mar 9, 2015
390e6e7
Updating XTBs based on .GRDs from branch 2311
Mar 9, 2015
8bba07c
Fix for MIME handler bug. The bug resulted from a previous bugfix (ht…
Mar 9, 2015
449acbc
Whispernet concurrent initialization fix (M42 merge)
Mar 9, 2015
a03dd08
Whispernet CRC and padding fixes (M42 merge)
Mar 9, 2015
ef7fdad
Fix CapsLock remapping.
Mar 9, 2015
1bf239f
Incrementing VERSION to 42.0.2311.37
Mar 9, 2015
361f0f3
Handle a case that View's size becomes empty unexpectedly
Mar 9, 2015
1cfff61
Incrementing VERSION to 42.0.2311.38
Mar 10, 2015
a9974d1
[Android] Fix BufferUnderflowException in webrtc buffer
Mar 10, 2015
f0194b3
ChromeOS: Preference resolve_timezone_by_geolocation should be syncable.
Mar 10, 2015
5af7d50
Cherry pick 28acf2a2b90abf3cafb21e44a6c396f747e8653d.
finnurbreki Mar 10, 2015
14a378d
Merge to M42: Fix flashing pod.
Mar 10, 2015
ece247f
Site preferences: merge in storage data and clear screen on reset.
mvano Mar 10, 2015
233c27f
Dump touchpad event logs for touch log source
mspang Mar 10, 2015
91ce411
Handle cog click from "failed download" notification.
mvano Mar 10, 2015
d9d0f28
Promote "chrome.browser" API to stable.
rpaquay Mar 10, 2015
0768948
2311: Squash of 987583002 & 989523003
Mar 10, 2015
259ea59
Fix 2311 compile after merge
Mar 10, 2015
95f89c5
Request uncompressed images from data reduction proxy when saving.
Mar 10, 2015
9992f4f
[Android] Allow specifying the progress component of the toolbar as a…
Mar 10, 2015
fc459c7
Incrementing VERSION to 42.0.2311.39
Mar 10, 2015
16716b1
Publish DEPS for Chromium 42.0.2311.39
Mar 10, 2015
7c657e0
Add xwalk path to git ignore list
May 3, 2013
67d794c
.gitignore: Ignore ozone/.
Feb 27, 2014
dacebb1
Also need to set aura::Window title
Jul 18, 2013
53ca6d9
Aura: fix the touch event doesn't work on Tizen 3.0 issue.
huningxin Jul 18, 2013
0cae771
[Tizen] Change Sandbox IPC process title.
ds-hwang Aug 30, 2013
89abafe
[Android] Extend android install timeout to 5 minutes for testing
Sep 11, 2013
7220217
[Android] When running android test, try killing adb if no devices found
Sep 11, 2013
d125689
[Tizen] Change scrollbar animator
Nov 6, 2013
05490fa
Introduce OS_TIZEN and set specific settings for Tizen platforms
kenchris Nov 7, 2013
4047cd9
Add GetFieldID functing to jni_help in the content for XWalk.
junmin-zhu Nov 17, 2013
8b2e8d3
[SysApps] Expose ffmpeg function signatures needed by Device Capabili…
Nov 26, 2013
587827e
Fix default min-layout width and scrollbar appearence.
kenchris Dec 5, 2013
d8ba281
[Android] Use application context for shared pref's creation
Dec 18, 2013
4fc1995
[SysApps] Make CodecIDToAudioCodec and CodecIDToVideoCodec available …
Dec 20, 2013
6ff3b84
[Views] Customize _NET_WM_PID for X11 window backing a Widget
cmarcelo Jan 9, 2014
6807b13
[Android] Use the Chromium TLS for thread local storage allocation
Jan 15, 2014
64491a5
[Views] Fix compiler initialization order errors.
Feb 10, 2014
8446a29
[Android] Allow intercepter to extract paks
Feb 28, 2014
9ad4863
[Tizen] Hard code for va driver
Mar 10, 2014
109abc5
[Android] Change the API for ApplicationStatus in base dir.
Apr 1, 2014
b987725
[Temp][oz-wl] Add support to provide external ozone files in views.
kalyankondapally Mar 5, 2014
07746fd
[Android] Add a new API to simulate activity started on ApplicationSt…
kurli Apr 8, 2014
e6697eb
[Tizen IVI] Make HTML5 full screen API work on IVI.
Feb 25, 2014
86ed375
[Android] Address Context leak in ResourceExtractor
Apr 14, 2014
588d5d2
[Android] Ignore status from non tracked activities
kurli Apr 16, 2014
fa4b14c
[Android] Add Resource loading filter for MediaPlayer
xingnan Feb 7, 2014
cab7794
[Extensions] Build glib message pump on Ozone by default
Jun 9, 2014
6ad3b27
[Tizen] Enable blink::OrientationEvent by default
Jun 13, 2014
ba78e9e
[Android] Fix the crash of GetUserMedia
xingnan Jun 19, 2014
fc6eb1c
[Android] Add a new listener to listen the first rendered frame
kurli Jul 7, 2014
8fe2620
Provide a ScreenOrientationDispatcherHost getter.
Jul 7, 2014
e1dbb03
[Android] Use TextureView as an alternative compositing surface target
Aug 12, 2014
fccaee9
[Android] Only initialize ContentReadbackHandler in onNativeLibraryLo…
Aug 15, 2014
b2eae2d
Introduce vaLockBuffer APIs in libva.
shaochangbin Sep 5, 2014
076bd09
[Tizen] Make content fit to the viewport
Sep 24, 2014
4e16fdb
[Temp][oz-wl] Fix crash when switching to console (VT) mode.
Oct 1, 2014
b25f5f7
.gitignore: Ignore src/third_party/khronos/CL.
Oct 7, 2014
9f30629
.gitignore: Ignore src/third_party/webcl.
junmin-zhu Oct 8, 2014
ce8113f
[Tizen] Set app ID and media class properties for the audio streams.
Nov 5, 2014
8aa20ea
Fix GPU process crash
Nov 28, 2014
5bfb3e4
[Temp][oz-wl] PlatformWindow: Add needed support in PlatformWindow.
kalyankondapally Oct 20, 2014
fec7fd7
[Tizen] Set the resource set "name" property instead of "appid"
Dec 30, 2014
7d1974c
[Temp][oz-wl] Remove usage of DesktopFactory.
kalyankondapally Dec 23, 2014
1afd777
[Temp][oz-wl] Media: Build VaapiPictureWayland as part of Media.
kalyankondapally Jan 12, 2015
e4e3646
[Tizen] Add Tizen Murphy resource policy daemon integration
Sep 11, 2014
f73671a
[Android] Allow constructor of Notifications on Android.
darktears Mar 3, 2015
3e19d48
[Temp][oz-wl] Fix crash when switching to console (VT) mode.
Oct 1, 2014
c1957c1
[Temp][oz-wl] Use vaAcquireBufferHandle APIs to instead of vaLockBuff…
qjia7 Mar 4, 2015
0d82348
[Temp][oz-wl] Media: Use upstream Video Accelerator.
kalyankondapally Mar 4, 2015
925d897
[Backport] don't mix system and bundled ICU
mostynb Feb 23, 2015
4281fab
[Temp][Android] Make the code work without SDK extras.
Mar 16, 2015
3da3480
[Backport] Revert of Enable ChannelMojo (patchset #3 id:40001 of http…
Mar 12, 2015
ee65235
Merge pull request #237 from leonhsl/master
Mar 18, 2015
f9cb73b
[Android] Enable support for notifications on ICS devices.
Mar 20, 2015
53a30c4
[Android] Implement ContentViewRenderView.setZOrderOnTop
axinging Mar 20, 2015
e26b72d
Merge pull request #238 from axinging/XWALK-3778-zorderontop
darktears Mar 20, 2015
903b90a
Merge pull request #239 from rakuco/enable-notifications-ics
Mar 20, 2015
c70b2f3
Add gyp flag disable_logging to conditionally disable LOG()/VLOG()/CH…
Mar 19, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
793 changes: 793 additions & 0 deletions .DEPS.git

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ v8.log
/net/Release
/net/testserver.log
/out*
/ozone
/ppapi/native_client/nacl_irt.xml
/ppapi/native_client/ppapi_lib.xml
/remoting/appengine/
Expand Down Expand Up @@ -311,6 +312,7 @@ v8.log
/third_party/junit/src
/third_party/kasko
/third_party/khronos_glcts
/third_party/khronos/CL
/third_party/leveldatabase/src
/third_party/leveldb
/third_party/libaddressinput/src
Expand Down Expand Up @@ -383,6 +385,7 @@ v8.log
/third_party/valgrind
/third_party/v4l2capture
/third_party/web-animations-js
/third_party/webcl
/third_party/webdriver/pylib
/third_party/webdriver/python/selenium
/third_party/webgl
Expand Down Expand Up @@ -440,3 +443,4 @@ v8.log
/win8/metro_driver/metro_driver_version_resources.xml
/x86-generic_out/
/xcodebuild
/xwalk
1,480 changes: 693 additions & 787 deletions DEPS

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
import org.chromium.content.browser.ContentViewCore;
import org.chromium.content.browser.ContentViewStatics;
import org.chromium.content.browser.SmartClipProvider;
import org.chromium.content.browser.WebContentsObserver;
import org.chromium.content.common.CleanupReference;
import org.chromium.content_public.browser.GestureStateListener;
import org.chromium.content_public.browser.JavaScriptCallback;
Expand Down Expand Up @@ -204,7 +203,7 @@ public abstract static class VisualStateCallback {
private NavigationController mNavigationController;
private final AwContentsClient mContentsClient;
private final AwContentViewClient mContentViewClient;
private WebContentsObserver mWebContentsObserver;
private AwWebContentsObserver mWebContentsObserver;
private final AwContentsClientBridge mContentsClientBridge;
private final AwWebContentsDelegateAdapter mWebContentsDelegate;
private final AwContentsIoThreadClient mIoThreadClient;
Expand All @@ -227,6 +226,8 @@ public abstract static class VisualStateCallback {
private boolean mHasRequestedVisitedHistoryFromClient;
// TODO(boliu): This should be in a global context, not per webview.
private final double mDIPScale;
// Whether the WebView has attempted to do any load (including uncommitted loads).
private boolean mDidAttemptLoad = false;

// The base background color, i.e. not accounting for any CSS body from the current page.
private int mBaseBackgroundColor = Color.WHITE;
Expand Down Expand Up @@ -908,6 +909,9 @@ private void receivePopupContents(long popupNativeAwContents) {
if (wasWindowFocused) onWindowFocusChanged(wasWindowFocused);
if (wasFocused) onFocusChanged(true, 0, null);

// Popups are always assumed as having made a load attempt.
mDidAttemptLoad = true;

// Restore injected JavaScript interfaces.
for (Map.Entry<String, Pair<Object, Class>> entry : javascriptInterfaces.entrySet()) {
@SuppressWarnings("unchecked")
Expand Down Expand Up @@ -1239,6 +1243,19 @@ public String getUrl() {
return url;
}

/**
* Gets the last committed URL. It represents the current page that is
* displayed in WebContents. It represents the current security context.
*
* @return The URL of the current page or null if it's empty.
*/
public String getLastCommittedUrl() {
if (isDestroyed()) return null;
String url = mWebContents.getLastCommittedUrl();
if (url == null || url.trim().isEmpty()) return null;
return url;
}

public void requestFocus() {
mAwViewMethods.requestFocus();
}
Expand Down Expand Up @@ -1831,6 +1848,11 @@ public MessagePort[] createMessageChannel() {
return ports;
}

public boolean hasAccessedInitialDocument() {
if (isDestroyed()) return false;
return mWebContents.hasAccessedInitialDocument();
}

//--------------------------------------------------------------------------------------------
// View and ViewGroup method implementations
//--------------------------------------------------------------------------------------------
Expand Down Expand Up @@ -2065,6 +2087,12 @@ public void insertVisualStateCallback(long requestId, VisualStateCallback callba
nativeInsertVisualStateCallback(mNativeAwContents, requestId, callback);
}

public boolean getDidAttemptLoad() {
if (mDidAttemptLoad) return mDidAttemptLoad;
mDidAttemptLoad = mWebContentsObserver.hasStartedAnyProvisionalLoad();
return mDidAttemptLoad;
}

//--------------------------------------------------------------------------------------------
// Methods called from native via JNI
//--------------------------------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,8 @@ public abstract void runFileChooser(int processId, int renderId, int modeFlags,
// Call in response to a prior runFileChooser call.
protected static native void nativeFilesSelectedInChooser(int processId, int renderId,
int modeFlags, String[] filePath, String[] displayName);

@Override
@CalledByNative
public abstract void navigationStateChanged(int flags);
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import android.os.Handler;
import android.os.Message;
import android.provider.MediaStore;
import android.text.TextUtils;
import android.util.Log;
import android.view.KeyEvent;
import android.view.View;
Expand All @@ -19,6 +20,7 @@

import org.chromium.base.ContentUriUtils;
import org.chromium.base.ThreadUtils;
import org.chromium.content_public.browser.InvalidateTypes;

/**
* Adapts the AwWebContentsDelegate interface to the AwContentsClient interface.
Expand Down Expand Up @@ -212,6 +214,22 @@ public void activateContents() {
mContentsClient.onRequestFocus();
}

@Override
public void navigationStateChanged(int flags) {
if ((flags & InvalidateTypes.URL) != 0
&& mAwContents.hasAccessedInitialDocument()
&& mAwContents.getDidAttemptLoad()) {
// Hint the client to show the last committed url, as it may be unsafe to show
// the pending entry.
String url = mAwContents.getLastCommittedUrl();
url = TextUtils.isEmpty(url) ? "about:blank" : url;
mContentsClient.onPageStarted(url);
mContentsClient.onLoadResource(url);
mContentsClient.onProgressChanged(100);
mContentsClient.onPageFinished(url);
}
}

@Override
public void toggleFullscreenModeForTab(boolean enterFullscreen) {
if (enterFullscreen) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,17 @@
*/
public class AwWebContentsObserver extends WebContentsObserver {
private final AwContentsClient mAwContentsClient;
private boolean mHasStartedAnyProvisionalLoad = false;

public AwWebContentsObserver(WebContents webContents, AwContentsClient awContentsClient) {
super(webContents);
mAwContentsClient = awContentsClient;
}

boolean hasStartedAnyProvisionalLoad() {
return mHasStartedAnyProvisionalLoad;
}

@Override
public void didFinishLoad(long frameId, String validatedUrl, boolean isMainFrame) {
String unreachableWebDataUrl = AwContentsStatics.getUnreachableWebDataUrl();
Expand Down Expand Up @@ -67,4 +72,15 @@ public void didNavigateMainFrame(String url, String baseUrl,
public void didNavigateAnyFrame(String url, String baseUrl, boolean isReload) {
mAwContentsClient.doUpdateVisitedHistory(url, isReload);
}

@Override
public void didStartProvisionalLoadForFrame(
long frameId,
long parentFrameId,
boolean isMainFrame,
String validatedUrl,
boolean isErrorPage,
boolean isIframeSrcdoc) {
mHasStartedAnyProvisionalLoad = true;
}
}
1 change: 1 addition & 0 deletions android_webview/java_library_common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ $(call intermediates-dir-for,GYP,shared)/enums/console_message_level_java/org/ch
$(call intermediates-dir-for,GYP,shared)/enums/content_gamepad_mapping/org/chromium/content/browser/input/CanonicalAxisIndex.java \
$(call intermediates-dir-for,GYP,shared)/enums/content_gamepad_mapping/org/chromium/content/browser/input/CanonicalButtonIndex.java \
$(call intermediates-dir-for,GYP,shared)/enums/gesture_event_type_java/org/chromium/content/browser/GestureEventType.java \
$(call intermediates-dir-for,GYP,shared)/enums/invalidate_types_java/org/chromium/content_public/browser/InvalidateTypes.java \
$(call intermediates-dir-for,GYP,shared)/enums/navigation_controller_java/org/chromium/content_public/browser/navigation_controller/LoadURLType.java \
$(call intermediates-dir-for,GYP,shared)/enums/navigation_controller_java/org/chromium/content_public/browser/navigation_controller/UserAgentOverrideOption.java \
$(call intermediates-dir-for,GYP,shared)/enums/popup_item_type_java/org/chromium/content/browser/input/PopupItemType.java \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -279,4 +279,84 @@ private void doTestOnPageFinishedCalledForHrefNavigations(boolean useBaseUrl) th
webServer.shutdown();
}
}

@MediumTest
@Feature({"AndroidWebView"})
public void testOnPageFinishedNotCalledOnDomModificationForBlankWebView() throws Throwable {
TestWebServer webServer = TestWebServer.start();
try {
doTestOnPageFinishedNotCalledOnDomMutation(webServer);
} finally {
webServer.shutdown();
}
}

@MediumTest
@Feature({"AndroidWebView"})
public void testOnPageFinishedCalledOnDomModificationAfterNonCommittedLoad() throws Throwable {
enableJavaScriptOnUiThread(mAwContents);
TestWebServer webServer = TestWebServer.start();
try {
final String noContentUrl = webServer.setResponseWithNoContentStatus("/nocontent.html");
TestCallbackHelperContainer.OnPageFinishedHelper onPageFinishedHelper =
mContentsClient.getOnPageFinishedHelper();
final int onPageFinishedCallCount = onPageFinishedHelper.getCallCount();
loadUrlAsync(mAwContents, noContentUrl);
// Mutate DOM.
executeJavaScriptAndWaitForResult(mAwContents, mContentsClient,
"document.body.innerHTML='Hello, World!'");
onPageFinishedHelper.waitForCallback(onPageFinishedCallCount);
assertEquals("about:blank", onPageFinishedHelper.getUrl());
} finally {
webServer.shutdown();
}
}

@MediumTest
@Feature({"AndroidWebView"})
public void testOnPageFinishedNotCalledOnDomModificationAfterLoadUrl() throws Throwable {
TestWebServer webServer = TestWebServer.start();
try {
final String testUrl =
webServer.setResponse("/test.html", CommonResources.ABOUT_HTML, null);
loadUrlSync(mAwContents, mContentsClient.getOnPageFinishedHelper(), testUrl);
doTestOnPageFinishedNotCalledOnDomMutation(webServer);
} finally {
webServer.shutdown();
}
}

@MediumTest
@Feature({"AndroidWebView"})
public void testOnPageFinishedNotCalledOnDomModificationAfterLoadData()
throws Throwable {
TestWebServer webServer = TestWebServer.start();
try {
loadDataSync(mAwContents, mContentsClient.getOnPageFinishedHelper(),
CommonResources.ABOUT_HTML, "text/html", false);
doTestOnPageFinishedNotCalledOnDomMutation(webServer);
} finally {
webServer.shutdown();
}
}

private void doTestOnPageFinishedNotCalledOnDomMutation(TestWebServer webServer)
throws Throwable {
enableJavaScriptOnUiThread(mAwContents);
TestCallbackHelperContainer.OnPageFinishedHelper onPageFinishedHelper =
mContentsClient.getOnPageFinishedHelper();
final int onPageFinishedCallCount = onPageFinishedHelper.getCallCount();
// Mutate DOM.
executeJavaScriptAndWaitForResult(mAwContents, mContentsClient,
"document.body.innerHTML='Hello, World!'");
// Rather than wait a fixed time to see that an onPageFinished callback isn't issued
// we load another valid page. Since callbacks arrive sequentially if the next callback
// we get is for the synchronizationUrl we know that DOM mutation did not schedule
// a callback for the iframe.
final String syncUrl = webServer.setResponse("/sync.html", "", null);
loadUrlAsync(mAwContents, syncUrl);
onPageFinishedHelper.waitForCallback(onPageFinishedCallCount);
assertEquals(syncUrl, onPageFinishedHelper.getUrl());
assertEquals(onPageFinishedCallCount + 1, onPageFinishedHelper.getCallCount());
}
}
1 change: 1 addition & 0 deletions android_webview/libwebviewchromium.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
'../content/content.gyp:console_message_level_java',
'../content/content.gyp:content_gamepad_mapping',
'../content/content.gyp:gesture_event_type_java',
'../content/content.gyp:invalidate_types_java',
'../content/content.gyp:navigation_controller_java',
'../content/content.gyp:popup_item_type_java',
'../content/content.gyp:result_codes_java',
Expand Down
12 changes: 12 additions & 0 deletions android_webview/native/aw_web_contents_delegate.cc
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,18 @@ void AwWebContentsDelegate::AddNewContents(WebContents* source,
}
}

void AwWebContentsDelegate::NavigationStateChanged(
content::WebContents* source,
content::InvalidateTypes changed_flags) {
JNIEnv* env = AttachCurrentThread();

ScopedJavaLocalRef<jobject> java_delegate = GetJavaDelegate(env);
if (java_delegate.obj()) {
Java_AwWebContentsDelegate_navigationStateChanged(env, java_delegate.obj(),
changed_flags);
}
}

// Notifies the delegate about the creation of a new WebContents. This
// typically happens when popups are created.
void AwWebContentsDelegate::WebContentsCreated(
Expand Down
2 changes: 2 additions & 0 deletions android_webview/native/aw_web_contents_delegate.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ class AwWebContentsDelegate
bool user_gesture,
bool* was_blocked) override;

void NavigationStateChanged(content::WebContents* source,
content::InvalidateTypes changed_flags) override;
void WebContentsCreated(content::WebContents* source_contents,
int opener_render_frame_id,
const base::string16& frame_name,
Expand Down
1 change: 1 addition & 0 deletions ash/strings/ash_strings_am.xtb
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@
<translation id="2761704814324807722">የሁኔታ መሣቢያ፣ ሰዓት <ph name="TIME"/>፣ <ph name="BATTERY"/></translation>
<translation id="3784455785234192852">ቆልፍ</translation>
<translation id="2805756323405976993">መተግበሪያዎች</translation>
<translation id="2313845391432982560">ቅጥያ «<ph name="EXTENSION_NAME"/>» ይህን አውታረ መረብ ሊወቅረው ይችላል።</translation>
<translation id="2872961005593481000">ዝጋ</translation>
<translation id="3433830597744061105">መለያዎችን አቀናብር</translation>
<translation id="742594950370306541">ካሜራ ስራ ላይ ነው።</translation>
Expand Down
1 change: 1 addition & 0 deletions ash/strings/ash_strings_ar.xtb
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@
<translation id="2761704814324807722">علبة الحالة، والوقت <ph name="TIME"/>، و<ph name="BATTERY"/></translation>
<translation id="3784455785234192852">قفل</translation>
<translation id="2805756323405976993">تطبيقات</translation>
<translation id="2313845391432982560">يمكن أن تهيّأ الإضافة &quot;<ph name="EXTENSION_NAME"/>&quot; هذه الشبكة.</translation>
<translation id="2872961005593481000">إيقاف التشغيل</translation>
<translation id="3433830597744061105">إدارة الحسابات</translation>
<translation id="742594950370306541">الكاميرا قيد الاستخدام.</translation>
Expand Down
4 changes: 4 additions & 0 deletions ash/strings/ash_strings_bg.xtb
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
<translation id="8676770494376880701">Свързано е зарядно устройство с малка мощност</translation>
<translation id="5238774010593222950">Не можете да влезете в друг профил</translation>
<translation id="1723752762323179280">Излизане от сесията</translation>
<translation id="1484102317210609525"><ph name="DEVICE_NAME"/> (HDMI/DP)</translation>
<translation id="1426410128494586442">Да</translation>
<translation id="2963773877003373896">mod3</translation>
<translation id="5222676887888702881">Изход</translation>
Expand Down Expand Up @@ -129,6 +130,7 @@
<translation id="2761704814324807722">Област за състоянието, часът е <ph name="TIME"/>, <ph name="BATTERY"/></translation>
<translation id="3784455785234192852">Заключване</translation>
<translation id="2805756323405976993">Приложения</translation>
<translation id="2313845391432982560">Разширението „<ph name="EXTENSION_NAME"/>“ може да конфигурира тази мрежа.</translation>
<translation id="2872961005593481000">Изключване</translation>
<translation id="3433830597744061105">Управление на профилите</translation>
<translation id="742594950370306541">Камерата се използва.</translation>
Expand Down Expand Up @@ -198,9 +200,11 @@
<translation id="4918086044614829423">Приемам</translation>
<translation id="5102001756192215136">Остава/т <ph name="HOUR"/>:<ph name="MINUTE"/></translation>
<translation id="3009178788565917040">Изход</translation>
<translation id="3147142846278915599">Стартов панел (приложенията се синхронизират...)</translation>
<translation id="6911468394164995108">Присъединяване другаде...</translation>
<translation id="3678715477168044796"><ph name="DISPLAY_NAME"/>: <ph name="ANNOTATION"/></translation>
<translation id="412065659894267608"><ph name="HOUR"/> ч <ph name="MINUTE"/> м до пълно зареждане</translation>
<translation id="3077734595579995578">shift</translation>
<translation id="6359806961507272919">SMS от <ph name="PHONE_NUMBER"/></translation>
<translation id="4053612967614057854">Деактивиране на екранната клавиатура</translation>
</translationbundle>
Loading