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

Unified Diff: chrome/utility/importer/ie_importer_win.cc

Issue 18501013: Move most importer code to chrome/utility/importer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: another gyp attempt Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/utility/importer/ie_importer_win.h ('k') | chrome/utility/importer/importer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/utility/importer/ie_importer_win.cc
diff --git a/chrome/browser/importer/ie_importer.cc b/chrome/utility/importer/ie_importer_win.cc
similarity index 98%
rename from chrome/browser/importer/ie_importer.cc
rename to chrome/utility/importer/ie_importer_win.cc
index 934e815173720f21173540e07226c28283e5d0ab..76c350dcb26655e66851f618e3818290e568e01e 100644
--- a/chrome/browser/importer/ie_importer.cc
+++ b/chrome/utility/importer/ie_importer_win.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/importer/ie_importer.h"
+#include "chrome/utility/importer/ie_importer_win.h"
#include <ole2.h>
#include <intshcut.h>
@@ -29,16 +29,16 @@
#include "base/win/scoped_handle.h"
#include "base/win/scoped_propvariant.h"
#include "base/win/windows_version.h"
-#include "chrome/browser/importer/ie_importer_utils_win.h"
-#include "chrome/browser/importer/importer_bridge.h"
-#include "chrome/browser/importer/pstore_declarations.h"
-#include "chrome/browser/importer/reencode_favicon.h"
+#include "chrome/common/importer/ie_importer_utils_win.h"
#include "chrome/common/importer/imported_bookmark_entry.h"
#include "chrome/common/importer/imported_favicon_usage.h"
+#include "chrome/common/importer/importer_bridge.h"
#include "chrome/common/importer/importer_data_types.h"
#include "chrome/common/importer/importer_url_row.h"
+#include "chrome/common/importer/pstore_declarations.h"
#include "chrome/common/time_format.h"
#include "chrome/common/url_constants.h"
+#include "chrome/utility/importer/favicon_reencode.h"
#include "content/public/common/password_form.h"
#include "grit/generated_resources.h"
#include "ui/base/l10n/l10n_util.h"
@@ -360,8 +360,9 @@ bool ReadReencodedFaviconData(const string16& file,
return false;
}
- return ReencodeFavicon(reinterpret_cast<const uint8*>(image_data.c_str()),
- image_data.size(), data);
+ const unsigned char* ptr =
+ reinterpret_cast<const unsigned char*>(image_data.c_str());
+ return importer::ReencodeFavicon(ptr, image_data.size(), data);
}
// Loads favicon image data and registers to |favicon_map|.
« no previous file with comments | « chrome/utility/importer/ie_importer_win.h ('k') | chrome/utility/importer/importer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698