summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--base/file_util_posix.cc2
-rw-r--r--chrome/browser/devtools/devtools_file_helper.cc2
-rw-r--r--chrome/browser/download/download_file_picker.cc2
-rw-r--r--chrome/browser/extensions/api/bookmarks/bookmarks_api.cc2
-rw-r--r--chrome/browser/extensions/api/developer_private/entry_picker.cc2
-rw-r--r--chrome/browser/extensions/api/file_system/file_system_api.cc2
-rw-r--r--chrome/browser/extensions/webstore_installer.cc2
-rw-r--r--chrome/browser/file_select_helper.cc2
-rw-r--r--chrome/browser/google_apis/gdata_wapi_parser_unittest.cc2
-rw-r--r--chrome/browser/media_galleries/media_galleries_dialog_controller.cc2
-rw-r--r--chrome/browser/ui/browser.cc2
-rw-r--r--chrome/browser/ui/chrome_select_file_policy_unittest.cc2
-rw-r--r--chrome/browser/ui/webui/extensions/extension_settings_handler.cc2
-rw-r--r--chrome/browser/ui/webui/extensions/pack_extension_handler.cc2
-rw-r--r--chrome/browser/ui/webui/options/browser_options_handler.cc2
-rw-r--r--chrome/browser/ui/webui/print_preview/print_preview_handler.cc2
-rw-r--r--chrome/common/extensions/extension_file_util_unittest.cc2
-rw-r--r--content/browser/accessibility/accessibility_tree_formatter.cc4
-rw-r--r--content/browser/plugin_service_impl.cc2
-rw-r--r--content/browser/tracing/tracing_ui.cc4
-rw-r--r--content/test/layout_browsertest.cc2
-rw-r--r--webkit/fileapi/file_system_util_unittest.cc2
22 files changed, 24 insertions, 24 deletions
diff --git a/base/file_util_posix.cc b/base/file_util_posix.cc
index 1512c0f..8bf164a 100644
--- a/base/file_util_posix.cc
+++ b/base/file_util_posix.cc
@@ -542,7 +542,7 @@ base::FilePath MakeUniqueDirectory(const base::FilePath& path) {
const int kMaxAttempts = 20;
for (int attempts = 0; attempts < kMaxAttempts; attempts++) {
int uniquifier =
- GetUniquePathNumber(path, FILE_PATH_LITERAL(std::string()));
+ GetUniquePathNumber(path, base::FilePath::StringType());
if (uniquifier < 0)
break;
base::FilePath test_path = (uniquifier == 0) ? path :
diff --git a/chrome/browser/devtools/devtools_file_helper.cc b/chrome/browser/devtools/devtools_file_helper.cc
index 4aef091..d1f2888 100644
--- a/chrome/browser/devtools/devtools_file_helper.cc
+++ b/chrome/browser/devtools/devtools_file_helper.cc
@@ -77,7 +77,7 @@ class SelectFileDialog : public ui::SelectFileDialog::Listener,
default_path,
NULL,
0,
- FILE_PATH_LITERAL(std::string()),
+ base::FilePath::StringType(),
NULL,
NULL);
}
diff --git a/chrome/browser/download/download_file_picker.cc b/chrome/browser/download/download_file_picker.cc
index b18a0f0..a968b06 100644
--- a/chrome/browser/download/download_file_picker.cc
+++ b/chrome/browser/download/download_file_picker.cc
@@ -91,7 +91,7 @@ void DownloadFilePicker::Init(
suggested_path_,
&file_type_info,
0,
- FILE_PATH_LITERAL(std::string()),
+ base::FilePath::StringType(),
owning_window,
NULL);
}
diff --git a/chrome/browser/extensions/api/bookmarks/bookmarks_api.cc b/chrome/browser/extensions/api/bookmarks/bookmarks_api.cc
index af98260..754eeee 100644
--- a/chrome/browser/extensions/api/bookmarks/bookmarks_api.cc
+++ b/chrome/browser/extensions/api/bookmarks/bookmarks_api.cc
@@ -946,7 +946,7 @@ void BookmarksIOFunction::ShowSelectFileDialog(
default_path,
&file_type_info,
0,
- FILE_PATH_LITERAL(std::string()),
+ base::FilePath::StringType(),
NULL,
NULL);
}
diff --git a/chrome/browser/extensions/api/developer_private/entry_picker.cc b/chrome/browser/extensions/api/developer_private/entry_picker.cc
index d305f4f..12a2994 100644
--- a/chrome/browser/extensions/api/developer_private/entry_picker.cc
+++ b/chrome/browser/extensions/api/developer_private/entry_picker.cc
@@ -64,7 +64,7 @@ EntryPicker::EntryPicker(EntryPickerClient* client,
last_directory,
&info,
file_type_index,
- FILE_PATH_LITERAL(std::string()),
+ base::FilePath::StringType(),
owning_window,
NULL);
}
diff --git a/chrome/browser/extensions/api/file_system/file_system_api.cc b/chrome/browser/extensions/api/file_system/file_system_api.cc
index 3b4e6f7..e849e3cc 100644
--- a/chrome/browser/extensions/api/file_system/file_system_api.cc
+++ b/chrome/browser/extensions/api/file_system/file_system_api.cc
@@ -437,7 +437,7 @@ class FileSystemChooseEntryFunction::FilePicker
suggested_name,
&file_type_info,
0,
- FILE_PATH_LITERAL(std::string()),
+ base::FilePath::StringType(),
owning_window,
NULL);
}
diff --git a/chrome/browser/extensions/webstore_installer.cc b/chrome/browser/extensions/webstore_installer.cc
index f5f4d68..09b7f8e 100644
--- a/chrome/browser/extensions/webstore_installer.cc
+++ b/chrome/browser/extensions/webstore_installer.cc
@@ -126,7 +126,7 @@ void GetDownloadFilePath(
directory.AppendASCII(id + "_" + random_number + ".crx");
int uniquifier =
- file_util::GetUniquePathNumber(file, FILE_PATH_LITERAL(std::string()));
+ file_util::GetUniquePathNumber(file, base::FilePath::StringType());
if (uniquifier > 0) {
file = file.InsertBeforeExtensionASCII(
base::StringPrintf(" (%d)", uniquifier));
diff --git a/chrome/browser/file_select_helper.cc b/chrome/browser/file_select_helper.cc
index 3d07ff2..48cf490 100644
--- a/chrome/browser/file_select_helper.cc
+++ b/chrome/browser/file_select_helper.cc
@@ -426,7 +426,7 @@ void FileSelectHelper::RunFileChooserOnUIThread(
select_file_types_.get() && !select_file_types_->extensions.empty()
? 1
: 0, // 1-based index of default extension to show.
- FILE_PATH_LITERAL(std::string()),
+ base::FilePath::StringType(),
owning_window,
#if defined(OS_ANDROID)
&accept_types);
diff --git a/chrome/browser/google_apis/gdata_wapi_parser_unittest.cc b/chrome/browser/google_apis/gdata_wapi_parser_unittest.cc
index d4fbba4..1356cf6 100644
--- a/chrome/browser/google_apis/gdata_wapi_parser_unittest.cc
+++ b/chrome/browser/google_apis/gdata_wapi_parser_unittest.cc
@@ -324,7 +324,7 @@ TEST(GDataWAPIParserTest, ResourceEntryHasDocumentExtension) {
EXPECT_FALSE(ResourceEntry::HasHostedDocumentExtension(
base::FilePath(FILE_PATH_LITERAL("Test"))));
EXPECT_FALSE(ResourceEntry::HasHostedDocumentExtension(
- base::FilePath(FILE_PATH_LITERAL(std::string()))));
+ base::FilePath()));
}
TEST(GDataWAPIParserTest, ResourceEntryClassifyEntryKind) {
diff --git a/chrome/browser/media_galleries/media_galleries_dialog_controller.cc b/chrome/browser/media_galleries/media_galleries_dialog_controller.cc
index 27b8765..bcd3ae3 100644
--- a/chrome/browser/media_galleries/media_galleries_dialog_controller.cc
+++ b/chrome/browser/media_galleries/media_galleries_dialog_controller.cc
@@ -186,7 +186,7 @@ void MediaGalleriesDialogController::OnAddFolderClicked() {
user_data_dir,
NULL,
0,
- FILE_PATH_LITERAL(std::string()),
+ base::FilePath::StringType(),
web_contents_->GetView()->GetTopLevelNativeWindow(),
NULL);
}
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
index c6b30b8..a31b4b0 100644
--- a/chrome/browser/ui/browser.cc
+++ b/chrome/browser/ui/browser.cc
@@ -817,7 +817,7 @@ void Browser::OpenFile() {
directory,
&file_types,
0,
- FILE_PATH_LITERAL(std::string()),
+ base::FilePath::StringType(),
parent_window,
NULL);
}
diff --git a/chrome/browser/ui/chrome_select_file_policy_unittest.cc b/chrome/browser/ui/chrome_select_file_policy_unittest.cc
index 0d20463..ad735f8 100644
--- a/chrome/browser/ui/chrome_select_file_policy_unittest.cc
+++ b/chrome/browser/ui/chrome_select_file_policy_unittest.cc
@@ -56,7 +56,7 @@ class FileSelectionUser : public ui::SelectFileDialog::Listener {
file_path,
NULL,
0,
- FILE_PATH_LITERAL(std::string()),
+ base::FilePath::StringType()),
NULL,
NULL);
file_selection_initialisation_in_progress = false;
diff --git a/chrome/browser/ui/webui/extensions/extension_settings_handler.cc b/chrome/browser/ui/webui/extensions/extension_settings_handler.cc
index 914939e..11ea684 100644
--- a/chrome/browser/ui/webui/extensions/extension_settings_handler.cc
+++ b/chrome/browser/ui/webui/extensions/extension_settings_handler.cc
@@ -935,7 +935,7 @@ void ExtensionSettingsHandler::HandleLoadUnpackedExtensionMessage(
last_unpacked_directory_,
NULL,
kFileTypeIndex,
- FILE_PATH_LITERAL(std::string()),
+ base::FilePath::StringType(),
web_ui()->GetWebContents()->GetView()->GetTopLevelNativeWindow(),
NULL);
}
diff --git a/chrome/browser/ui/webui/extensions/pack_extension_handler.cc b/chrome/browser/ui/webui/extensions/pack_extension_handler.cc
index 0623fda..d201c91 100644
--- a/chrome/browser/ui/webui/extensions/pack_extension_handler.cc
+++ b/chrome/browser/ui/webui/extensions/pack_extension_handler.cc
@@ -189,7 +189,7 @@ void PackExtensionHandler::HandleSelectFilePathMessage(
base::FilePath(),
&info,
file_type_index,
- FILE_PATH_LITERAL(std::string()),
+ base::FilePath::StringType(),
web_ui()->GetWebContents()->GetView()->GetTopLevelNativeWindow(),
NULL);
}
diff --git a/chrome/browser/ui/webui/options/browser_options_handler.cc b/chrome/browser/ui/webui/options/browser_options_handler.cc
index 081806f..54c5c31 100644
--- a/chrome/browser/ui/webui/options/browser_options_handler.cc
+++ b/chrome/browser/ui/webui/options/browser_options_handler.cc
@@ -1196,7 +1196,7 @@ void BrowserOptionsHandler::HandleSelectDownloadLocation(
pref_service->GetFilePath(prefs::kDownloadDefaultDirectory),
&info,
0,
- FILE_PATH_LITERAL(std::string()),
+ base::FilePath::StringType(),
web_ui()->GetWebContents()->GetView()->GetTopLevelNativeWindow(),
NULL);
}
diff --git a/chrome/browser/ui/webui/print_preview/print_preview_handler.cc b/chrome/browser/ui/webui/print_preview/print_preview_handler.cc
index ec05b59..7899260 100644
--- a/chrome/browser/ui/webui/print_preview/print_preview_handler.cc
+++ b/chrome/browser/ui/webui/print_preview/print_preview_handler.cc
@@ -866,7 +866,7 @@ void PrintPreviewHandler::SelectFile(const base::FilePath& default_filename) {
sticky_settings->save_path()->Append(default_filename),
&file_type_info,
0,
- FILE_PATH_LITERAL(std::string()),
+ base::FilePath::StringType(),
platform_util::GetTopLevel(
preview_web_contents()->GetView()->GetNativeView()),
NULL);
diff --git a/chrome/common/extensions/extension_file_util_unittest.cc b/chrome/common/extensions/extension_file_util_unittest.cc
index 3f34f6e..6d68bc1 100644
--- a/chrome/common/extensions/extension_file_util_unittest.cc
+++ b/chrome/common/extensions/extension_file_util_unittest.cc
@@ -304,7 +304,7 @@ TEST_F(ExtensionFileUtilTest, ExtensionResourceURLToFilePath) {
// Setup filesystem for testing.
base::FilePath root_path;
ASSERT_TRUE(file_util::CreateNewTempDirectory(
- FILE_PATH_LITERAL(std::string()), &root_path));
+ base::FilePath::StringType(), &root_path));
ASSERT_TRUE(file_util::AbsolutePath(&root_path));
base::FilePath api_path = root_path.Append(FILE_PATH_LITERAL("apiname"));
diff --git a/content/browser/accessibility/accessibility_tree_formatter.cc b/content/browser/accessibility/accessibility_tree_formatter.cc
index b1bc110..3904bc0 100644
--- a/content/browser/accessibility/accessibility_tree_formatter.cc
+++ b/content/browser/accessibility/accessibility_tree_formatter.cc
@@ -80,13 +80,13 @@ void AccessibilityTreeFormatter::Initialize() {}
// static
const base::FilePath::StringType
AccessibilityTreeFormatter::GetActualFileSuffix() {
- return FILE_PATH_LITERAL(std::string());
+ return base::FilePath::StringType();
}
// static
const base::FilePath::StringType
AccessibilityTreeFormatter::GetExpectedFileSuffix() {
- return FILE_PATH_LITERAL(std::string());
+ return base::FilePath::StringType();
}
// static
diff --git a/content/browser/plugin_service_impl.cc b/content/browser/plugin_service_impl.cc
index 1734cc8..a800ec2 100644
--- a/content/browser/plugin_service_impl.cc
+++ b/content/browser/plugin_service_impl.cc
@@ -178,7 +178,7 @@ void PluginServiceImpl::Init() {
if (command_line->HasSwitch(switches::kSitePerProcess)) {
webkit::WebPluginInfo webview_plugin(
ASCIIToUTF16("WebView Tag"),
- base::FilePath(FILE_PATH_LITERAL(std::string())),
+ base::FilePath(),
ASCIIToUTF16("1.2.3.4"),
ASCIIToUTF16("Browser Plugin."));
webview_plugin.type = webkit::WebPluginInfo::PLUGIN_TYPE_NPAPI;
diff --git a/content/browser/tracing/tracing_ui.cc b/content/browser/tracing/tracing_ui.cc
index 6c224c0..40bbee3 100644
--- a/content/browser/tracing/tracing_ui.cc
+++ b/content/browser/tracing/tracing_ui.cc
@@ -319,7 +319,7 @@ void TracingMessageHandler::OnLoadTraceFile(const base::ListValue* list) {
base::FilePath(),
NULL,
0,
- FILE_PATH_LITERAL(std::string()),
+ base::FilePath::StringType(),
web_ui()->GetWebContents()->GetView()->GetTopLevelNativeWindow(),
NULL);
}
@@ -372,7 +372,7 @@ void TracingMessageHandler::OnSaveTraceFile(const base::ListValue* list) {
base::FilePath(),
NULL,
0,
- FILE_PATH_LITERAL(std::string()),
+ base::FilePath::StringType(),
web_ui()->GetWebContents()->GetView()->GetTopLevelNativeWindow(),
NULL);
}
diff --git a/content/test/layout_browsertest.cc b/content/test/layout_browsertest.cc
index 155dbbe..431e890 100644
--- a/content/test/layout_browsertest.cc
+++ b/content/test/layout_browsertest.cc
@@ -196,7 +196,7 @@ std::string InProcessBrowserLayoutTest::SaveResults(const std::string& expected,
const std::string& actual) {
base::FilePath cwd;
EXPECT_TRUE(file_util::CreateNewTempDirectory(
- FILE_PATH_LITERAL(std::string()), &cwd));
+ base::FilePath::StringType(), &cwd));
base::FilePath expected_filename =
cwd.Append(FILE_PATH_LITERAL("expected.txt"));
base::FilePath actual_filename = cwd.Append(FILE_PATH_LITERAL("actual.txt"));
diff --git a/webkit/fileapi/file_system_util_unittest.cc b/webkit/fileapi/file_system_util_unittest.cc
index 74fc764..1c129bd 100644
--- a/webkit/fileapi/file_system_util_unittest.cc
+++ b/webkit/fileapi/file_system_util_unittest.cc
@@ -115,7 +115,7 @@ TEST_F(FileSystemUtilTest, GetNormalizedFilePath) {
TEST_F(FileSystemUtilTest, IsAbsolutePath) {
EXPECT_TRUE(VirtualPath::IsAbsolute(FILE_PATH_LITERAL("/")));
EXPECT_TRUE(VirtualPath::IsAbsolute(FILE_PATH_LITERAL("/foo/bar")));
- EXPECT_FALSE(VirtualPath::IsAbsolute(FILE_PATH_LITERAL(std::string())));
+ EXPECT_FALSE(VirtualPath::IsAbsolute(base::FilePath::StringType()));
EXPECT_FALSE(VirtualPath::IsAbsolute(FILE_PATH_LITERAL("foo/bar")));
}