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

Issue 1867083003: "Move to other window" improvements. (Closed)

Created:
4 years, 8 months ago by newt (away)
Modified:
4 years, 8 months ago
Reviewers:
Yusuf
CC:
chromium-reviews, lizeb+watch-custom-tabs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@find_in_page_leak
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

"Move to other window" improvements. This makes several improvements and bug fixes to the unfinished "move to other window" feature: - Unifies logic for tab detaching and activity launching. Tab.detachAndStartReparenting() now handles the process of detaching the tab from the current activity and launching the new host activity. This de-duplicates some logic that existed in CustomTabActivity and ChromeTabbedActivity. - Fixes white flicker when reparenting into an already-visible activity. See change in CompositorViewHolder. - Moving NativePages now works. ExternalNavigationDelegateImpl nows uses a better way to get the application context that works for native pages, and the intent now has trusted extras so chrome-native:// URLs will be accepted. - Various UI elements now update themselves correctly when a tab is moved: * ChromeTabbedActivity closes if homepage is enabled and the last tab was moved * The toolbar state (e.g. the tab count number) is updated when a tab is moved * The tablet empty background view is shown when the last tab is moved. BUG=595889 Committed: https://crrev.com/9e77195b5ba9b99e62af0248e103add25eee3aad Cr-Commit-Position: refs/heads/master@{#385916}

Patch Set 1 #

Total comments: 4

Patch Set 2 : fixed double intent issue with custom tabs; addressed comments #

Patch Set 3 : fix legit findbugs failure #

Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -51 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/ChromeTabbedActivity.java View 1 4 chunks +8 lines, -14 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/appmenu/AppMenuPropertiesDelegate.java View 1 2 chunks +2 lines, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/compositor/CompositorViewHolder.java View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java View 1 4 chunks +17 lines, -27 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/document/DocumentActivity.java View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/externalnav/ExternalNavigationDelegateImpl.java View 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java View 1 5 chunks +52 lines, -4 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/tabmodel/ChromeTabCreator.java View 1 1 chunk +1 line, -2 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabModelObserver.java View 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarManager.java View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/widget/emptybackground/EmptyBackgroundViewWrapper.java View 1 chunk +5 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 15 (6 generated)
newt (away)
PTAL
4 years, 8 months ago (2016-04-07 19:09:38 UTC) #2
Yusuf
lgtm withy two nits https://codereview.chromium.org/1867083003/diff/1/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java File chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java (right): https://codereview.chromium.org/1867083003/diff/1/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java#newcode739 chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java:739: final Tab tab = getActivityTab(); ...
4 years, 8 months ago (2016-04-07 19:15:13 UTC) #3
Yusuf
Still lgtm!
4 years, 8 months ago (2016-04-07 21:46:36 UTC) #4
newt (away)
Danke schoen! https://codereview.chromium.org/1867083003/diff/1/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java File chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java (right): https://codereview.chromium.org/1867083003/diff/1/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java#newcode739 chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java:739: final Tab tab = getActivityTab(); On 2016/04/07 ...
4 years, 8 months ago (2016-04-07 21:47:08 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1867083003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1867083003/20001
4 years, 8 months ago (2016-04-07 21:47:23 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg_recipe on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_clang_dbg_recipe/builds/47426)
4 years, 8 months ago (2016-04-07 22:19:52 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1867083003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1867083003/40001
4 years, 8 months ago (2016-04-07 22:25:41 UTC) #12
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 8 months ago (2016-04-07 23:11:15 UTC) #13
commit-bot: I haz the power
4 years, 8 months ago (2016-04-07 23:13:48 UTC) #15
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/9e77195b5ba9b99e62af0248e103add25eee3aad
Cr-Commit-Position: refs/heads/master@{#385916}

Powered by Google App Engine
This is Rietveld 408576698