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

Issue 10388232: Replace most users of BrowserList::GetLastActive in feedback ui with more appropriate functions. (Closed)

Created:
8 years, 7 months ago by Ben Goodger (Google)
Modified:
8 years, 7 months ago
Reviewers:
Evan Stade
CC:
chromium-reviews
Visibility:
Public.

Description

Replace most users of BrowserList::GetLastActive in feedback ui with more appropriate functions. http://crbug.com/129187 TEST=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=138317

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -10 lines) Patch
MM chrome/browser/ui/webui/feedback_ui.cc View 3 chunks +5 lines, -10 lines 2 comments Download

Messages

Total messages: 3 (0 generated)
Ben Goodger (Google)
8 years, 7 months ago (2012-05-22 17:56:36 UTC) #1
Evan Stade
lgtm http://codereview.chromium.org/10388232/diff/1/chrome/browser/ui/webui/feedback_ui.cc File chrome/browser/ui/webui/feedback_ui.cc (right): http://codereview.chromium.org/10388232/diff/1/chrome/browser/ui/webui/feedback_ui.cc#newcode382 chrome/browser/ui/webui/feedback_ui.cc:382: SetupScreenshotsSource(); I have no idea why this is ...
8 years, 7 months ago (2012-05-22 18:46:11 UTC) #2
Ben Goodger (Google)
8 years, 7 months ago (2012-05-22 19:21:27 UTC) #3
http://codereview.chromium.org/10388232/diff/1/chrome/browser/ui/webui/feedba...
File chrome/browser/ui/webui/feedback_ui.cc (right):

http://codereview.chromium.org/10388232/diff/1/chrome/browser/ui/webui/feedba...
chrome/browser/ui/webui/feedback_ui.cc:382: SetupScreenshotsSource();
On 2012/05/22 18:46:11, Evan Stade wrote:
> I have no idea why this is called twice

Initial inspection seems to suggest that via Init(), it is only called if the
tab index is valid. It won't be called if it's invalid, but even if it is
invalid, construction of the FeedbackUI continues (false is passed to
CreateFeedbackUIHTMLSource instead). RegisterMessages() appears to be some sort
of framework function, which will probably end up being called later, so it
seems this code has another stab at initializing the source if it wasn't done
already.

It could be that we want this setup done regardless of whether or not the index
supplied is valid. I don't know any of this code well enough to say what
expectation is/what's the right thing to do.

Powered by Google App Engine
This is Rietveld 408576698