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

Issue 10750018: Remove browser::FindLastActiveWithProfile call in importer code. There are many ways to create an I… (Closed)

Created:
8 years, 5 months ago by jam
Modified:
8 years, 5 months ago
CC:
chromium-reviews, tfarina
Visibility:
Public.

Description

Remove browser::FindLastActiveWithProfile call in importer code. There are many ways to create an ImporterHost, but only when it's created from the webui do we give the option to import from Google Toolbar. In that case, pass the Browser* directly. BUG=129187 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=145890

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -6 lines) Patch
M chrome/browser/importer/importer_host.h View 5 chunks +11 lines, -1 line 0 comments Download
M chrome/browser/importer/importer_host.cc View 5 chunks +10 lines, -5 lines 1 comment Download
M chrome/browser/ui/webui/options2/import_data_handler2.cc View 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
jam
8 years, 5 months ago (2012-07-10 00:52:07 UTC) #1
Ben Goodger (Google)
8 years, 5 months ago (2012-07-10 15:13:10 UTC) #2
lgtm

http://codereview.chromium.org/10750018/diff/1/chrome/browser/importer/import...
File chrome/browser/importer/importer_host.cc (right):

http://codereview.chromium.org/10750018/diff/1/chrome/browser/importer/import...
chrome/browser/importer/importer_host.cc:272: browser_ = NULL;
idle thinking... would be cool if this could somehow just be a page navigator,
but you have no way of invalidating it unless you're a browserlist observer, so
what you have is fine.

Powered by Google App Engine
This is Rietveld 408576698