diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-06 23:51:49 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-06 23:51:49 +0000 |
commit | 237a454ef1f036acd3c447723dd74c8364532736 (patch) | |
tree | 7d4822df05f73f3132bb21b31d76f4528c19fb51 /chrome/browser/importer/profile_import_process_messages.h | |
parent | 99ee46d8b29f9c2f1a4a16175043b4467d0bb886 (diff) | |
download | chromium_src-237a454ef1f036acd3c447723dd74c8364532736.zip chromium_src-237a454ef1f036acd3c447723dd74c8364532736.tar.gz chromium_src-237a454ef1f036acd3c447723dd74c8364532736.tar.bz2 |
importer: Get rid of ImporterList::GetSourceProfileNameAt method.
This function is redundant as ImportList can return SourceProfile and we can get
that information from there.
Also, while I'm here, rename the data member |description| of SourceProfile
struct to |importer_name|, so it's more clearer what it means.
BUG=None
TEST=None
R=avi@chromium.org
Review URL: http://codereview.chromium.org/6803025
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80721 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/importer/profile_import_process_messages.h')
-rw-r--r-- | chrome/browser/importer/profile_import_process_messages.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/importer/profile_import_process_messages.h b/chrome/browser/importer/profile_import_process_messages.h index 5f30d7c..6dd898d 100644 --- a/chrome/browser/importer/profile_import_process_messages.h +++ b/chrome/browser/importer/profile_import_process_messages.h @@ -28,14 +28,14 @@ template <> struct ParamTraits<importer::SourceProfile> { typedef importer::SourceProfile param_type; static void Write(Message* m, const param_type& p) { - WriteParam(m, p.description); + WriteParam(m, p.importer_name); WriteParam(m, static_cast<int>(p.importer_type)); WriteParam(m, p.source_path); WriteParam(m, p.app_path); WriteParam(m, static_cast<int>(p.services_supported)); } static bool Read(const Message* m, void** iter, param_type* p) { - if (!ReadParam(m, iter, &p->description)) + if (!ReadParam(m, iter, &p->importer_name)) return false; int importer_type = 0; @@ -56,7 +56,7 @@ struct ParamTraits<importer::SourceProfile> { } static void Log(const param_type& p, std::string* l) { l->append("("); - LogParam(p.description, l); + LogParam(p.importer_name, l); l->append(", "); LogParam(static_cast<int>(p.importer_type), l); l->append(", "); |