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

Issue 14620014: Fixes couple of bugs triggered on chromeos when restoring a tab: (Closed)

Created:
7 years, 7 months ago by sky
Modified:
7 years, 7 months ago
Reviewers:
James Cook, marja
CC:
chromium-reviews, marja+watch_chromium.org, sadrul, ben+watch_chromium.org
Visibility:
Public.

Description

Fixes couple of bugs triggered on chromeos when restoring a tab: . Makes TabRestoreService go to loaded if asked to restore previous session and it already has the max number of tabs. . Adds method to TabRestoreServiceObserver this is sent when loaded. . Makes ChromeShellDelegate use a TabRestoreServiceObserver to wait for load to complete then restores. BUG=239194 TEST=add some test coverage R=jamescook@chromium.org, marja@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=199540

Patch Set 1 #

Patch Set 2 : comments #

Total comments: 3

Patch Set 3 : resolve merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+147 lines, -14 lines) Patch
M chrome/browser/sessions/persistent_tab_restore_service.cc View 1 3 chunks +12 lines, -2 lines 0 comments Download
M chrome/browser/sessions/persistent_tab_restore_service_browsertest.cc View 1 4 chunks +54 lines, -0 lines 0 comments Download
M chrome/browser/sessions/tab_restore_service_helper.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/sessions/tab_restore_service_helper.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/sessions/tab_restore_service_observer.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/chrome_shell_delegate.h View 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/chrome_shell_delegate.cc View 1 2 3 chunks +66 lines, -12 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
sky
marja: sessions changes james: chrome_shell_delegate
7 years, 7 months ago (2013-05-09 00:16:43 UTC) #1
James Cook
https://codereview.chromium.org/14620014/diff/2001/chrome/browser/ui/ash/chrome_shell_delegate.cc File chrome/browser/ui/ash/chrome_shell_delegate.cc (right): https://codereview.chromium.org/14620014/diff/2001/chrome/browser/ui/ash/chrome_shell_delegate.cc#newcode210 chrome/browser/ui/ash/chrome_shell_delegate.cc:210: Browser* browser = chrome::FindBrowserWithWindow(ash::wm::GetActiveWindow()); I think the old code ...
7 years, 7 months ago (2013-05-09 16:36:31 UTC) #2
sky
https://codereview.chromium.org/14620014/diff/2001/chrome/browser/ui/ash/chrome_shell_delegate.cc File chrome/browser/ui/ash/chrome_shell_delegate.cc (right): https://codereview.chromium.org/14620014/diff/2001/chrome/browser/ui/ash/chrome_shell_delegate.cc#newcode210 chrome/browser/ui/ash/chrome_shell_delegate.cc:210: Browser* browser = chrome::FindBrowserWithWindow(ash::wm::GetActiveWindow()); On 2013/05/09 16:36:31, James Cook ...
7 years, 7 months ago (2013-05-09 16:42:12 UTC) #3
James Cook
LGTM https://codereview.chromium.org/14620014/diff/2001/chrome/browser/ui/ash/chrome_shell_delegate.cc File chrome/browser/ui/ash/chrome_shell_delegate.cc (right): https://codereview.chromium.org/14620014/diff/2001/chrome/browser/ui/ash/chrome_shell_delegate.cc#newcode210 chrome/browser/ui/ash/chrome_shell_delegate.cc:210: Browser* browser = chrome::FindBrowserWithWindow(ash::wm::GetActiveWindow()); On 2013/05/09 16:42:12, sky ...
7 years, 7 months ago (2013-05-09 16:48:30 UTC) #4
marja
chrome/browser/sessions lgtm
7 years, 7 months ago (2013-05-10 08:18:36 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sky@chromium.org/14620014/2001
7 years, 7 months ago (2013-05-10 15:00:42 UTC) #6
commit-bot: I haz the power
Failed to apply patch for chrome/browser/ui/ash/chrome_shell_delegate.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 7 months ago (2013-05-10 15:00:44 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sky@chromium.org/14620014/12001
7 years, 7 months ago (2013-05-10 18:29:37 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sky@chromium.org/14620014/12001
7 years, 7 months ago (2013-05-10 21:15:08 UTC) #9
commit-bot: I haz the power
7 years, 7 months ago (2013-05-10 21:19:29 UTC) #10
Message was sent while issue was closed.
Change committed as 199540

Powered by Google App Engine
This is Rietveld 408576698