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

Unified Diff: chrome/browser/importer/safari_importer.mm

Issue 6746014: importer: Cleanup, remove all remaining using declarations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 9 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/nss_decryptor.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/importer/safari_importer.mm
diff --git a/chrome/browser/importer/safari_importer.mm b/chrome/browser/importer/safari_importer.mm
index e67f08385f09cec735b09c15549139dba5c69bd3..5fc842ba990e7f223e25e892c6dfeef015d2e624 100644
--- a/chrome/browser/importer/safari_importer.mm
+++ b/chrome/browser/importer/safari_importer.mm
@@ -61,10 +61,9 @@ bool SafariImporter::CanImport(const FilePath& library_dir,
FilePath bookmarks_path = safari_dir.Append("Bookmarks.plist");
FilePath history_path = safari_dir.Append("History.plist");
- using file_util::PathExists;
- if (PathExists(bookmarks_path))
+ if (file_util::PathExists(bookmarks_path))
*services_supported |= importer::FAVORITES;
- if (PathExists(history_path))
+ if (file_util::PathExists(history_path))
*services_supported |= importer::HISTORY;
return *services_supported != importer::NONE;
@@ -346,13 +345,11 @@ void SafariImporter::ParseHistoryItems(
objectForKey:@"WebHistoryDates"];
for (NSDictionary* history_item in safari_history_items) {
- using base::SysNSStringToUTF8;
- using base::SysNSStringToUTF16;
NSString* url_ns = [history_item objectForKey:@""];
if (!url_ns)
continue;
- GURL url(SysNSStringToUTF8(url_ns));
+ GURL url(base::SysNSStringToUTF8(url_ns));
if (!CanImportSafariURL(url))
continue;
@@ -365,7 +362,7 @@ void SafariImporter::ParseHistoryItems(
if (!title_ns)
title_ns = url_ns;
- row.set_title(SysNSStringToUTF16(title_ns));
+ row.set_title(base::SysNSStringToUTF16(title_ns));
int visit_count = [[history_item objectForKey:@"visitCount"]
intValue];
row.set_visit_count(visit_count);
« no previous file with comments | « chrome/browser/importer/nss_decryptor.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698