diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-08 17:09:20 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-08 17:09:20 +0000 |
commit | 978673721078e58266f5f6cc3c1e68de571d8d4e (patch) | |
tree | 40e5d49d84efa2606af2960653d4f50a82f8ac05 /chrome/browser/ui | |
parent | 4c3d01e44940a7f8843cfbeaf5be94f0ab695938 (diff) | |
download | chromium_src-978673721078e58266f5f6cc3c1e68de571d8d4e.zip chromium_src-978673721078e58266f5f6cc3c1e68de571d8d4e.tar.gz chromium_src-978673721078e58266f5f6cc3c1e68de571d8d4e.tar.bz2 |
importer: Cleanup ImporterList some more.
- Rename GetAvailableProfileCount() to simply count().
- Make count() return size_t instead of int.
- Remove unneeded source_profiles_loaded() get accessor.
BUG=None
TEST=None
R=avi@chromium.org
Review URL: http://codereview.chromium.org/6813035
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80950 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui')
-rw-r--r-- | chrome/browser/ui/webui/options/import_data_handler.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/chrome/browser/ui/webui/options/import_data_handler.cc b/chrome/browser/ui/webui/options/import_data_handler.cc index 4aee83f..29afaa6 100644 --- a/chrome/browser/ui/webui/options/import_data_handler.cc +++ b/chrome/browser/ui/webui/options/import_data_handler.cc @@ -120,8 +120,7 @@ void ImportDataHandler::ImportData(const ListValue* args) { void ImportDataHandler::SourceProfilesLoaded() { ListValue browser_profiles; - int profiles_count = importer_list_->GetAvailableProfileCount(); - for (int i = 0; i < profiles_count; i++) { + for (size_t i = 0; i < importer_list_->count(); ++i) { const importer::SourceProfile& source_profile = importer_list_->GetSourceProfileAt(i); uint16 browser_services = source_profile.services_supported; |