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

Unified Diff: content/browser/tracing/tracing_ui.cc

Issue 12213066: Use base namespace for FilePath in content/browser (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
Index: content/browser/tracing/tracing_ui.cc
diff --git a/content/browser/tracing/tracing_ui.cc b/content/browser/tracing/tracing_ui.cc
index b82da36160152477d17794866864a1b93f497bde..e9d08d67769bc4c1b245ea8b17f769f0564fd638 100644
--- a/content/browser/tracing/tracing_ui.cc
+++ b/content/browser/tracing/tracing_ui.cc
@@ -65,7 +65,9 @@ class TracingMessageHandler
virtual void RegisterMessages();
// SelectFileDialog::Listener implementation
- virtual void FileSelected(const FilePath& path, int index, void* params);
+ virtual void FileSelected(const base::FilePath& path,
+ int index,
+ void* params);
virtual void FileSelectionCanceled(void* params);
// TraceSubscriber implementation.
@@ -212,7 +214,7 @@ void TracingMessageHandler::OnBeginRequestBufferPercentFull(
// A callback used for asynchronously reading a file to a string. Calls the
// TaskProxy callback when reading is complete.
-void ReadTraceFileCallback(TaskProxy* proxy, const FilePath& path) {
+void ReadTraceFileCallback(TaskProxy* proxy, const base::FilePath& path) {
std::string file_contents;
if (!file_util::ReadFileToString(path, &file_contents))
return;
@@ -255,7 +257,7 @@ void ReadTraceFileCallback(TaskProxy* proxy, const FilePath& path) {
// A callback used for asynchronously writing a file from a string. Calls the
// TaskProxy callback when writing is complete.
void WriteTraceFileCallback(TaskProxy* proxy,
- const FilePath& path,
+ const base::FilePath& path,
std::string* contents) {
if (!file_util::WriteFile(path, contents->c_str(), contents->size()))
return;
@@ -266,7 +268,7 @@ void WriteTraceFileCallback(TaskProxy* proxy,
}
void TracingMessageHandler::FileSelected(
- const FilePath& path, int index, void* params) {
+ const base::FilePath& path, int index, void* params) {
if (select_trace_file_dialog_type_ ==
ui::SelectFileDialog::SELECT_OPEN_FILE) {
BrowserThread::PostTask(
@@ -308,7 +310,7 @@ void TracingMessageHandler::OnLoadTraceFile(const ListValue* list) {
select_trace_file_dialog_->SelectFile(
ui::SelectFileDialog::SELECT_OPEN_FILE,
string16(),
- FilePath(),
+ base::FilePath(),
NULL, 0, FILE_PATH_LITERAL(""),
web_ui()->GetWebContents()->GetView()->GetTopLevelNativeWindow(), NULL);
}
@@ -358,7 +360,7 @@ void TracingMessageHandler::OnSaveTraceFile(const ListValue* list) {
select_trace_file_dialog_->SelectFile(
ui::SelectFileDialog::SELECT_SAVEAS_FILE,
string16(),
- FilePath(),
+ base::FilePath(),
NULL, 0, FILE_PATH_LITERAL(""),
web_ui()->GetWebContents()->GetView()->GetTopLevelNativeWindow(), NULL);
}
« no previous file with comments | « content/browser/tracing/trace_subscriber_stdio_unittest.cc ('k') | content/browser/utility_process_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698