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

Unified Diff: chrome/browser/chromeos/extensions/wallpaper_private_api.cc

Issue 1452853002: Convert vector_as_array to vector::data in //chrome{,cast,os}. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@vector-data
Patch Set: Created 5 years, 1 month 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 | « no previous file | chrome/browser/chromeos/file_system_provider/operations/read_file.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/extensions/wallpaper_private_api.cc
diff --git a/chrome/browser/chromeos/extensions/wallpaper_private_api.cc b/chrome/browser/chromeos/extensions/wallpaper_private_api.cc
index 705b6e260c63b9c563be444692c715472fc1d99c..c153bfffb59da76a03dae613bac0a42366c89963 100644
--- a/chrome/browser/chromeos/extensions/wallpaper_private_api.cc
+++ b/chrome/browser/chromeos/extensions/wallpaper_private_api.cc
@@ -20,7 +20,6 @@
#include "base/memory/scoped_ptr.h"
#include "base/path_service.h"
#include "base/prefs/pref_service.h"
-#include "base/stl_util.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/stringprintf.h"
#include "base/threading/worker_pool.h"
@@ -86,7 +85,7 @@ bool SaveData(int key,
base::FilePath file_path = data_dir.Append(file_name);
return base::PathExists(file_path) ||
- base::WriteFile(file_path, vector_as_array(&data), data.size()) != -1;
+ base::WriteFile(file_path, data.data(), data.size()) != -1;
}
// Gets |file_name| from directory with |key|. Return false if the directory can
« no previous file with comments | « no previous file | chrome/browser/chromeos/file_system_provider/operations/read_file.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698