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

Unified Diff: chrome/browser/importer/importer.cc

Issue 27249: Make firefox_importer_utils.cc compile on Posix. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 10 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/browser/importer/firefox_importer_utils.cc ('k') | chrome/chrome.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/importer/importer.cc
===================================================================
--- chrome/browser/importer/importer.cc (revision 10540)
+++ chrome/browser/importer/importer.cc (working copy)
@@ -647,9 +647,14 @@
return;
}
+ DictionaryValue root;
+#if defined(OS_WIN)
std::wstring ini_file = GetProfilesINI();
- DictionaryValue root;
ParseProfileINI(ini_file, &root);
+#else
+ // TODO(port): Do we need to concern ourselves with profiles on posix?
+ NOTIMPLEMENTED();
+#endif
std::wstring source_path;
for (int i = 0; ; ++i) {
@@ -664,6 +669,7 @@
root.GetString(current_profile + L".Path", &path)) {
ReplaceSubstringsAfterOffset(&path, 0, L"/", L"\\");
+#if defined(OS_WIN)
// IsRelative=1 means the folder path would be relative to the
// path of profiles.ini. IsRelative=0 refers to a custom profile
// location.
@@ -673,6 +679,7 @@
} else {
profile_path = path;
}
+#endif
// We only import the default profile when multiple profiles exist,
// since the other profiles are used mostly by developers for testing.
« no previous file with comments | « chrome/browser/importer/firefox_importer_utils.cc ('k') | chrome/chrome.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698