New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 755321 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Aug 2017
Cc:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug-Regression



Sign in to add a comment

28 kb regression in resource_sizes (MonochromePublic.apk) at 493546:493546

Project Member Reported by estevenson@chromium.org, Aug 14 2017

Issue description

Caused by "Add logic in ssl_error_handler to render a MITM software interstitial."

Commit 2bfbbe90fe0c3f8590080dde5021260588b4e354

Link to size graph: https://chromeperf.appspot.com/report?sid=a097e74b1aa288511afb4cb616efe0f95ba4d347ad61d5e835072f23450938ba&num_points=10&rev=493546

Debugging size regressions is documented at: https://chromium.googlesource.com/chromium/src/+/master/docs/speed/apk_size_regressions.md#Debugging-Apk-Size-Increase

Based on the graph: Mostly native code growth due to regex use.
 
Project Member

Comment 1 by 42576172...@developer.gserviceaccount.com, Aug 14 2017

All graphs for this bug:
  https://chromeperf.appspot.com/group_report?bug_id=755321

(For debugging:) Original alerts at time of bug-filing:
  https://chromeperf.appspot.com/group_report?sid=2ec5cfc7779911116c2da8ab3bdb7003bd48589e0fe792835f034a6b88a52b46


Bot(s) for this bug's original alert(s):

Android Builder
Labels: OS-Android
Owner: sperigo@chromium.org
Status: Assigned (was: Untriaged)
See attached diff for more details.

It's not clear to me whether or not this increase was expected. Please have a look and either:

1. Close as “Won't Fix” with a short justification, or
2. Land a revert / fix-up.


diff_results.txt
60.5 KB View Download
Cc: mea...@chromium.org
Hi, I'm so sorry! I completely missed this. I'll take a look with my intern host this afternoon and get back to you ASAP.
I opened a CL to switch from using std::regex to the RE2 library, which is included elsewhere in Chrome. This should shrink the size of the APK.

https://chromium-review.googlesource.com/c/chromium/src/+/634280
Project Member

Comment 5 by bugdroid1@chromium.org, Aug 25 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/567501229d406f9874f0a68a8972310e389eddac

commit 567501229d406f9874f0a68a8972310e389eddac
Author: Sasha Perigo <sperigo@chromium.org>
Date: Fri Aug 25 01:50:57 2017

Switched from std::regexes to re2::RE2s in ssl_error_handler.cc.

The RE2 library is used in place of the standard regex library
elsewhere in the Chrome code base. I updated ssl_error_handler.cc to
match this pattern.

Bug:  crbug.com/755321 
Change-Id: I750b35549e2a74e935fb25c83e057e3e5dec784b
Reviewed-on: https://chromium-review.googlesource.com/634280
Commit-Queue: Sasha Perigo <sperigo@chromium.org>
Reviewed-by: Mustafa Emre Acer <meacer@chromium.org>
Cr-Commit-Position: refs/heads/master@{#497289}
[modify] https://crrev.com/567501229d406f9874f0a68a8972310e389eddac/chrome/browser/ssl/ssl_error_handler.cc

Comment 7 by mea...@chromium.org, Aug 25 2017

Nice! To avoid this in the future, should we have a presubmit that checks for std::regex and suggest re2 instead?
Good idea! Filed 759548 for this.
Project Member

Comment 9 by bugdroid1@chromium.org, Dec 21 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/6b42732c9ecff24281c801ab1ef4758f33e501e3

commit 6b42732c9ecff24281c801ab1ef4758f33e501e3
Author: Mostyn Bramley-Moore <mostynb@vewd.com>
Date: Thu Dec 21 22:23:04 2017

PRESUBMIT: make crbug references copy+pastable

BUG= 755321 ,714018, 570091 

Change-Id: I7cfe86901561910107919e18102ade3a4015f471
Reviewed-on: https://chromium-review.googlesource.com/838060
Commit-Queue: Mostyn Bramley-Moore <mostynb@vewd.com>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/master@{#525829}
[modify] https://crrev.com/6b42732c9ecff24281c801ab1ef4758f33e501e3/PRESUBMIT.py

Sign in to add a comment