summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/ui')
-rw-r--r--chrome/browser/ui/app_list/search/history_data_store_unittest.cc2
-rw-r--r--chrome/browser/ui/ash/screenshot_taker.cc2
-rw-r--r--chrome/browser/ui/certificate_dialogs.cc2
-rw-r--r--chrome/browser/ui/libgtk2ui/app_indicator_icon.cc5
-rw-r--r--chrome/browser/ui/metro_pin_tab_helper_win.cc6
-rw-r--r--chrome/browser/ui/network_profile_bubble.cc2
-rw-r--r--chrome/browser/ui/pdf/pdf_browsertest.cc2
-rw-r--r--chrome/browser/ui/startup/startup_browser_creator.cc4
-rw-r--r--chrome/browser/ui/webui/options/certificate_manager_handler.cc2
9 files changed, 13 insertions, 14 deletions
diff --git a/chrome/browser/ui/app_list/search/history_data_store_unittest.cc b/chrome/browser/ui/app_list/search/history_data_store_unittest.cc
index 3d71554..a831b30 100644
--- a/chrome/browser/ui/app_list/search/history_data_store_unittest.cc
+++ b/chrome/browser/ui/app_list/search/history_data_store_unittest.cc
@@ -72,7 +72,7 @@ class HistoryDataStoreTest : public testing::Test {
void WriteDataFile(const std::string& file_name,
const std::string& data) {
- file_util::WriteFile(
+ base::WriteFile(
temp_dir_.path().AppendASCII(file_name), data.c_str(), data.size());
}
diff --git a/chrome/browser/ui/ash/screenshot_taker.cc b/chrome/browser/ui/ash/screenshot_taker.cc
index e0fecd4..4c5f72d 100644
--- a/chrome/browser/ui/ash/screenshot_taker.cc
+++ b/chrome/browser/ui/ash/screenshot_taker.cc
@@ -192,7 +192,7 @@ void SaveScreenshotInternal(const ShowNotificationCallback& callback,
DCHECK(!local_path.empty());
ScreenshotTakerObserver::Result result =
ScreenshotTakerObserver::SCREENSHOT_SUCCESS;
- if (static_cast<size_t>(file_util::WriteFile(
+ if (static_cast<size_t>(base::WriteFile(
local_path,
reinterpret_cast<char*>(&(png_data->data()[0])),
png_data->size())) != png_data->size()) {
diff --git a/chrome/browser/ui/certificate_dialogs.cc b/chrome/browser/ui/certificate_dialogs.cc
index cb32713..0712dd7 100644
--- a/chrome/browser/ui/certificate_dialogs.cc
+++ b/chrome/browser/ui/certificate_dialogs.cc
@@ -25,7 +25,7 @@ using content::WebContents;
namespace {
void WriterCallback(const base::FilePath& path, const std::string& data) {
- int bytes_written = file_util::WriteFile(path, data.data(), data.size());
+ int bytes_written = base::WriteFile(path, data.data(), data.size());
if (bytes_written != static_cast<ssize_t>(data.size())) {
LOG(ERROR) << "Writing " << path.value() << " ("
<< data.size() << "B) returned " << bytes_written;
diff --git a/chrome/browser/ui/libgtk2ui/app_indicator_icon.cc b/chrome/browser/ui/libgtk2ui/app_indicator_icon.cc
index 097a8fc..1586288 100644
--- a/chrome/browser/ui/libgtk2ui/app_indicator_icon.cc
+++ b/chrome/browser/ui/libgtk2ui/app_indicator_icon.cc
@@ -144,9 +144,8 @@ base::FilePath CreateTempImageFile(gfx::ImageSkia* image_ptr,
new_file_path =
temp_dir.Append(id + base::StringPrintf("_%d.png", icon_change_count));
int bytes_written =
- file_util::WriteFile(new_file_path,
- png_data->front_as<char>(),
- png_data->size());
+ base::WriteFile(new_file_path,
+ png_data->front_as<char>(), png_data->size());
if (bytes_written != static_cast<int>(png_data->size()))
return base::FilePath();
diff --git a/chrome/browser/ui/metro_pin_tab_helper_win.cc b/chrome/browser/ui/metro_pin_tab_helper_win.cc
index 10736d9..15a47e2 100644
--- a/chrome/browser/ui/metro_pin_tab_helper_win.cc
+++ b/chrome/browser/ui/metro_pin_tab_helper_win.cc
@@ -108,9 +108,9 @@ bool CreateSiteSpecificLogo(const SkBitmap& bitmap,
return false;
*logo_path = logo_dir.Append(tile_id).ReplaceExtension(L".png");
- return file_util::WriteFile(*logo_path,
- reinterpret_cast<char*>(&logo_png[0]),
- logo_png.size()) > 0;
+ return base::WriteFile(*logo_path,
+ reinterpret_cast<char*>(&logo_png[0]),
+ logo_png.size()) > 0;
}
// Get the path to the backup logo. If the backup logo already exists in
diff --git a/chrome/browser/ui/network_profile_bubble.cc b/chrome/browser/ui/network_profile_bubble.cc
index 7e3d385..b611d59b 100644
--- a/chrome/browser/ui/network_profile_bubble.cc
+++ b/chrome/browser/ui/network_profile_bubble.cc
@@ -127,7 +127,7 @@ void NetworkProfileBubble::CheckNetworkProfile(
// Try to create some non-empty temp file in the profile dir and use
// it to check if there is a reparse-point free path to it.
if (base::CreateTemporaryFileInDir(profile_folder, &temp_file) &&
- (file_util::WriteFile(temp_file, ".", 1) == 1)) {
+ (base::WriteFile(temp_file, ".", 1) == 1)) {
base::FilePath normalized_temp_file;
if (!base::NormalizeFilePath(temp_file, &normalized_temp_file))
profile_on_network = true;
diff --git a/chrome/browser/ui/pdf/pdf_browsertest.cc b/chrome/browser/ui/pdf/pdf_browsertest.cc
index aeb9683..cceea4b 100644
--- a/chrome/browser/ui/pdf/pdf_browsertest.cc
+++ b/chrome/browser/ui/pdf/pdf_browsertest.cc
@@ -186,7 +186,7 @@ class PDFBrowserTest : public InProcessBrowserTest,
std::vector<unsigned char> png_data;
gfx::PNGCodec::EncodeBGRASkBitmap(bitmap, false, &png_data);
if (base::CreateTemporaryFile(&snapshot_filename_)) {
- file_util::WriteFile(snapshot_filename_,
+ base::WriteFile(snapshot_filename_,
reinterpret_cast<char*>(&png_data[0]), png_data.size());
}
}
diff --git a/chrome/browser/ui/startup/startup_browser_creator.cc b/chrome/browser/ui/startup/startup_browser_creator.cc
index 703e136..b9400c2 100644
--- a/chrome/browser/ui/startup/startup_browser_creator.cc
+++ b/chrome/browser/ui/startup/startup_browser_creator.cc
@@ -240,8 +240,8 @@ void DumpBrowserHistograms(const base::FilePath& output_file) {
base::ThreadRestrictions::AssertIOAllowed();
std::string output_string(base::StatisticsRecorder::ToJSON(std::string()));
- file_util::WriteFile(output_file, output_string.data(),
- static_cast<int>(output_string.size()));
+ base::WriteFile(output_file, output_string.data(),
+ static_cast<int>(output_string.size()));
}
} // namespace
diff --git a/chrome/browser/ui/webui/options/certificate_manager_handler.cc b/chrome/browser/ui/webui/options/certificate_manager_handler.cc
index 4034c70..2b7481a 100644
--- a/chrome/browser/ui/webui/options/certificate_manager_handler.cc
+++ b/chrome/browser/ui/webui/options/certificate_manager_handler.cc
@@ -282,7 +282,7 @@ void FileAccessProvider::DoWrite(const base::FilePath& path,
const std::string& data,
int* saved_errno,
int* bytes_written) {
- *bytes_written = file_util::WriteFile(path, data.data(), data.size());
+ *bytes_written = base::WriteFile(path, data.data(), data.size());
*saved_errno = *bytes_written >= 0 ? 0 : errno;
}