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

Issue 10827168: Fix user agent override restore pipeline (Closed)

Created:
8 years, 4 months ago by gone
Modified:
8 years, 3 months ago
CC:
chromium-reviews, marja+watch_chromium.org, sschmitz
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Fix user agent override restoration pipeline There were some disconnects in the pipeline that prevented the user agent override string from being saved and restored from the temporary tab structions in sessions/, but couldn't be tested on Android because the pathways weren't being exercised in the same way. This CL finishes hooking it up for ChromeOS (and presumably the other platforms). BUG=140600 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=152207

Patch Set 1 #

Patch Set 2 : Missed a call #

Patch Set 3 : Another fix... #

Patch Set 4 : Saves the user agent override string to the Tab #

Patch Set 5 : Adding unit tests #

Patch Set 6 : Rebasing #

Total comments: 6

Patch Set 7 : Nit fixes #

Patch Set 8 : Another restoration disconnect #

Patch Set 9 : Adds unit test for uncovered pathway #

Patch Set 10 : Rebasing #

Total comments: 5

Patch Set 11 : Nit fixes #

Patch Set 12 : Notification -> observer #

Patch Set 13 : Don't link if sessions unavailable #

Total comments: 6

Patch Set 14 : Nit addressing #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+154 lines, -48 lines) Patch
M chrome/browser/sessions/session_restore.cc View 1 2 3 4 5 6 7 8 9 3 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/sessions/session_restore_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 9 chunks +60 lines, -8 lines 0 comments Download
M chrome/browser/sessions/session_service.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/sessions/session_service.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +13 lines, -13 lines 0 comments Download
M chrome/browser/sessions/session_service_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/sessions/tab_restore_service.cc View 1 2 3 4 5 6 7 8 9 4 chunks +9 lines, -3 lines 0 comments Download
M chrome/browser/sessions/tab_restore_service_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +9 lines, -2 lines 0 comments Download
M chrome/browser/sessions/tab_restore_service_delegate.h View 6 7 8 9 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/browser_tab_restore_service_delegate.h View 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/browser_tab_restore_service_delegate.cc View 1 2 6 7 8 9 2 chunks +7 lines, -4 lines 0 comments Download
M chrome/browser/ui/browser_tabrestore.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +7 lines, -3 lines 0 comments Download
M chrome/browser/ui/browser_tabrestore.cc View 1 2 3 4 5 6 7 8 9 4 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/ui/tab_contents/tab_contents.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/tab_contents/tab_contents.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +14 lines, -0 lines 2 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +3 lines, -0 lines 0 comments Download
M content/public/browser/web_contents_observer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
gone
sky: Added you as reviewer since you helped with my previous session restoring CL. I ...
8 years, 4 months ago (2012-08-06 20:09:39 UTC) #1
gone
Ping?
8 years, 4 months ago (2012-08-08 21:46:56 UTC) #2
sky
Add tests to cover this.
8 years, 4 months ago (2012-08-08 22:16:07 UTC) #3
gone
On 2012/08/08 22:16:07, sky wrote: > Add tests to cover this. Changed 3 unit tests ...
8 years, 4 months ago (2012-08-13 21:54:00 UTC) #4
sky
LGTM with the following changes. https://chromiumcodereview.appspot.com/10827168/diff/10012/chrome/browser/sessions/session_restore_browsertest.cc File chrome/browser/sessions/session_restore_browsertest.cc (right): https://chromiumcodereview.appspot.com/10827168/diff/10012/chrome/browser/sessions/session_restore_browsertest.cc#newcode411 chrome/browser/sessions/session_restore_browsertest.cc:411: ASSERT_EQ(web_contents->GetUserAgentOverride(), tab.user_agent_override); flip the ...
8 years, 4 months ago (2012-08-14 00:05:46 UTC) #5
gone
Done, thanks! https://chromiumcodereview.appspot.com/10827168/diff/10012/chrome/browser/sessions/session_restore_browsertest.cc File chrome/browser/sessions/session_restore_browsertest.cc (right): https://chromiumcodereview.appspot.com/10827168/diff/10012/chrome/browser/sessions/session_restore_browsertest.cc#newcode411 chrome/browser/sessions/session_restore_browsertest.cc:411: ASSERT_EQ(web_contents->GetUserAgentOverride(), tab.user_agent_override); On 2012/08/14 00:05:46, sky wrote: ...
8 years, 4 months ago (2012-08-14 01:03:22 UTC) #6
gone
+creis Unfortunately, I found another hole in the pipeline while testing it out. The hole ...
8 years, 4 months ago (2012-08-15 00:22:09 UTC) #7
sschmitz
Dan, Can you think of a test case (for my desktop) that would fail without ...
8 years, 4 months ago (2012-08-15 15:33:01 UTC) #8
gone
> Dan, > > Can you think of a test case (for my desktop) that ...
8 years, 4 months ago (2012-08-15 15:38:18 UTC) #9
Charlie Reis
LGTM. Adding John for content/public/browser/notification_types.h, but I think it's ok in this case. https://chromiumcodereview.appspot.com/10827168/diff/3021/chrome/browser/sessions/session_restore_browsertest.cc File ...
8 years, 4 months ago (2012-08-15 17:24:22 UTC) #10
gone
Nits addressed, thanks! Will wait for jam to weigh in. https://chromiumcodereview.appspot.com/10827168/diff/3021/chrome/browser/sessions/session_restore_browsertest.cc File chrome/browser/sessions/session_restore_browsertest.cc (right): https://chromiumcodereview.appspot.com/10827168/diff/3021/chrome/browser/sessions/session_restore_browsertest.cc#newcode395 ...
8 years, 4 months ago (2012-08-15 20:15:43 UTC) #11
jam
On 2012/08/15 17:24:22, creis wrote: > LGTM. Adding John for content/public/browser/notification_types.h, but I think > ...
8 years, 4 months ago (2012-08-15 23:36:17 UTC) #12
gone
> I dislike notifications very much and I've been trying to stop as many more ...
8 years, 4 months ago (2012-08-16 21:17:15 UTC) #13
jam
lgtm with nits, thanks for updating yes definitely it was the norm previously to just ...
8 years, 4 months ago (2012-08-17 16:02:09 UTC) #14
gone
Nits fixed, thanks! If there aren't any other comments, I'll send this to the commit ...
8 years, 4 months ago (2012-08-17 18:39:55 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dfalcantara@chromium.org/10827168/15008
8 years, 4 months ago (2012-08-17 20:31:28 UTC) #16
commit-bot: I haz the power
Change committed as 152207
8 years, 4 months ago (2012-08-18 01:47:54 UTC) #17
Avi (use Gerrit)
https://chromiumcodereview.appspot.com/10827168/diff/15008/chrome/browser/ui/tab_contents/tab_contents.cc File chrome/browser/ui/tab_contents/tab_contents.cc (right): https://chromiumcodereview.appspot.com/10827168/diff/15008/chrome/browser/ui/tab_contents/tab_contents.cc#newcode266 chrome/browser/ui/tab_contents/tab_contents.cc:266: #endif NO. TabContents is not the place for random ...
8 years, 3 months ago (2012-08-29 21:01:22 UTC) #18
gone
https://chromiumcodereview.appspot.com/10827168/diff/15008/chrome/browser/ui/tab_contents/tab_contents.cc File chrome/browser/ui/tab_contents/tab_contents.cc (right): https://chromiumcodereview.appspot.com/10827168/diff/15008/chrome/browser/ui/tab_contents/tab_contents.cc#newcode266 chrome/browser/ui/tab_contents/tab_contents.cc:266: #endif On 2012/08/29 21:01:22, Avi wrote: > NO. > ...
8 years, 3 months ago (2012-08-29 21:10:01 UTC) #19
Avi (use Gerrit)
I'm fixing. How does changing RestoreTabHelper to SessionTabHelper and adding this to all the stuff ...
8 years, 3 months ago (2012-08-29 21:19:16 UTC) #20
gone
8 years, 3 months ago (2012-08-29 21:26:02 UTC) #21
On 2012/08/29 21:19:16, Avi wrote:
> I'm fixing. How does changing RestoreTabHelper to SessionTabHelper and adding
> this to all the stuff that it watches?

Sounds good to me.

Powered by Google App Engine
This is Rietveld 408576698