Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Issue 639703004: Optimizing DateTimeAndroid and ColorChooserAndroid initializations. (Closed)

Created:
6 years, 2 months ago by AKVT
Modified:
6 years, 1 month ago
CC:
chromium-reviews, darin-cc_chromium.org, nasko+codewatch_chromium.org, jam, creis+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Optimizing DateTimeAndroid and ColorChooserAndroid initializations. Some of the functions are direct wrapper to WebContents methods. In this patch, taken care of removing those dependencies and added extra validation to prevent run time crashes. BUG=398263 Committed: https://crrev.com/9e47ab574004f9b9f32b3b9e9b7cc3cb0e59d0c7 Cr-Commit-Position: refs/heads/master@{#302146}

Patch Set 1 #

Patch Set 2 : Fixed nits. #

Total comments: 8

Patch Set 3 : Removed Context from WebContents and fixed other review comments. #

Patch Set 4 : Reverted untouched blank line. #

Total comments: 2

Patch Set 5 : Fixed the review comments. #

Messages

Total messages: 24 (6 generated)
AKVT
@Yaron & Ted PTAL
6 years, 2 months ago (2014-10-13 18:10:15 UTC) #3
AKVT
@Yaron & Ted PTAL
6 years, 2 months ago (2014-10-15 17:22:30 UTC) #4
Yaron
https://codereview.chromium.org/639703004/diff/130001/components/web_contents_delegate_android/android/java/src/org/chromium/components/web_contents_delegate_android/ColorChooserAndroid.java File components/web_contents_delegate_android/android/java/src/org/chromium/components/web_contents_delegate_android/ColorChooserAndroid.java (right): https://codereview.chromium.org/639703004/diff/130001/components/web_contents_delegate_android/android/java/src/org/chromium/components/web_contents_delegate_android/ColorChooserAndroid.java#newcode55 components/web_contents_delegate_android/android/java/src/org/chromium/components/web_contents_delegate_android/ColorChooserAndroid.java:55: webContents.getContext(), initialColor, suggestions); From a preliminary look, it appears ...
6 years, 2 months ago (2014-10-15 20:32:38 UTC) #5
Yaron
On 2014/10/15 20:32:38, Yaron wrote: > https://codereview.chromium.org/639703004/diff/130001/components/web_contents_delegate_android/android/java/src/org/chromium/components/web_contents_delegate_android/ColorChooserAndroid.java > File > components/web_contents_delegate_android/android/java/src/org/chromium/components/web_contents_delegate_android/ColorChooserAndroid.java > (right): > > ...
6 years, 2 months ago (2014-10-15 20:34:46 UTC) #6
Ted C
https://codereview.chromium.org/639703004/diff/130001/content/browser/android/date_time_chooser_android.cc File content/browser/android/date_time_chooser_android.cc (right): https://codereview.chromium.org/639703004/diff/130001/content/browser/android/date_time_chooser_android.cc#newcode106 content/browser/android/date_time_chooser_android.cc:106: webcontents->GetJavaWebContents().obj(), I want to agree with Yaron that context ...
6 years, 2 months ago (2014-10-15 21:32:42 UTC) #7
AKVT
On 2014/10/15 21:32:42, Ted C wrote: > https://codereview.chromium.org/639703004/diff/130001/content/browser/android/date_time_chooser_android.cc > File content/browser/android/date_time_chooser_android.cc (right): > > https://codereview.chromium.org/639703004/diff/130001/content/browser/android/date_time_chooser_android.cc#newcode106 ...
6 years, 2 months ago (2014-10-21 19:28:21 UTC) #8
AKVT
@Yaron & Ted PTAL https://codereview.chromium.org/639703004/diff/130001/components/web_contents_delegate_android/android/java/src/org/chromium/components/web_contents_delegate_android/ColorChooserAndroid.java File components/web_contents_delegate_android/android/java/src/org/chromium/components/web_contents_delegate_android/ColorChooserAndroid.java (right): https://codereview.chromium.org/639703004/diff/130001/components/web_contents_delegate_android/android/java/src/org/chromium/components/web_contents_delegate_android/ColorChooserAndroid.java#newcode55 components/web_contents_delegate_android/android/java/src/org/chromium/components/web_contents_delegate_android/ColorChooserAndroid.java:55: webContents.getContext(), initialColor, suggestions); On 2014/10/15 ...
6 years, 1 month ago (2014-10-29 18:13:29 UTC) #9
Yaron
I think this lg (and thanks for the cleanup!) but I'll leave final approval to ...
6 years, 1 month ago (2014-10-29 23:37:22 UTC) #10
Ted C
https://codereview.chromium.org/639703004/diff/200001/components/web_contents_delegate_android/android/java/src/org/chromium/components/web_contents_delegate_android/ColorChooserAndroid.java File components/web_contents_delegate_android/android/java/src/org/chromium/components/web_contents_delegate_android/ColorChooserAndroid.java (right): https://codereview.chromium.org/639703004/diff/200001/components/web_contents_delegate_android/android/java/src/org/chromium/components/web_contents_delegate_android/ColorChooserAndroid.java#newcode55 components/web_contents_delegate_android/android/java/src/org/chromium/components/web_contents_delegate_android/ColorChooserAndroid.java:55: windowAndroid.getActivity().get(), initialColor, suggestions); .getActivity().get() can be null in the ...
6 years, 1 month ago (2014-10-30 00:01:01 UTC) #11
AKVT
@Ted & Yaron PTAL https://codereview.chromium.org/639703004/diff/200001/components/web_contents_delegate_android/android/java/src/org/chromium/components/web_contents_delegate_android/ColorChooserAndroid.java File components/web_contents_delegate_android/android/java/src/org/chromium/components/web_contents_delegate_android/ColorChooserAndroid.java (right): https://codereview.chromium.org/639703004/diff/200001/components/web_contents_delegate_android/android/java/src/org/chromium/components/web_contents_delegate_android/ColorChooserAndroid.java#newcode55 components/web_contents_delegate_android/android/java/src/org/chromium/components/web_contents_delegate_android/ColorChooserAndroid.java:55: windowAndroid.getActivity().get(), initialColor, suggestions); On 2014/10/30 ...
6 years, 1 month ago (2014-10-30 18:26:02 UTC) #12
Ted C
lgtm
6 years, 1 month ago (2014-10-30 18:27:51 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/639703004/220001
6 years, 1 month ago (2014-10-30 18:59:24 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/21314)
6 years, 1 month ago (2014-10-30 19:05:18 UTC) #17
AKVT
@Ted Thanks. @avi PTAL. This patch is missing web_contents_impl.cc OWNER LGTM
6 years, 1 month ago (2014-10-30 19:12:06 UTC) #19
Avi (use Gerrit)
On 2014/10/30 19:12:06, AKV wrote: > @Ted Thanks. > @avi PTAL. This patch is missing ...
6 years, 1 month ago (2014-10-30 19:22:43 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/639703004/220001
6 years, 1 month ago (2014-10-30 19:24:12 UTC) #22
commit-bot: I haz the power
Committed patchset #5 (id:220001)
6 years, 1 month ago (2014-10-30 20:24:25 UTC) #23
commit-bot: I haz the power
6 years, 1 month ago (2014-10-30 20:25:08 UTC) #24
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/9e47ab574004f9b9f32b3b9e9b7cc3cb0e59d0c7
Cr-Commit-Position: refs/heads/master@{#302146}

Powered by Google App Engine
This is Rietveld 408576698