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

Unified Diff: chrome/browser/ui/webui/options2/manage_profile_handler.cc

Issue 10837044: Correct const accessors in base/values.(h|cc), Part II (ListValue) (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 5 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: chrome/browser/ui/webui/options2/manage_profile_handler.cc
diff --git a/chrome/browser/ui/webui/options2/manage_profile_handler.cc b/chrome/browser/ui/webui/options2/manage_profile_handler.cc
index 5d050dd37b098462f115f068a173dc8d3658fae0..c59176c2c8e70256eef5389c5b613c7aaf966ae9 100644
--- a/chrome/browser/ui/webui/options2/manage_profile_handler.cc
+++ b/chrome/browser/ui/webui/options2/manage_profile_handler.cc
@@ -141,7 +141,7 @@ void ManageProfileHandler::SendProfileNames() {
void ManageProfileHandler::SetProfileNameAndIcon(const ListValue* args) {
DCHECK(args);
- Value* file_path_value;
+ const Value* file_path_value;
FilePath profile_file_path;
if (!args->Get(0, &file_path_value) ||
!base::GetValueAsFilePath(*file_path_value, &profile_file_path))
@@ -228,7 +228,7 @@ void ManageProfileHandler::DeleteProfile(const ListValue* args) {
ProfileMetrics::LogProfileDeleteUser(ProfileMetrics::PROFILE_DELETED);
- Value* file_path_value;
+ const Value* file_path_value;
FilePath profile_file_path;
if (!args->Get(0, &file_path_value) ||
!base::GetValueAsFilePath(*file_path_value, &profile_file_path))
@@ -242,7 +242,7 @@ void ManageProfileHandler::ProfileIconSelectionChanged(
const base::ListValue* args) {
DCHECK(args);
- Value* file_path_value;
+ const Value* file_path_value;
FilePath file_path;
if (!args->Get(0, &file_path_value) ||
!base::GetValueAsFilePath(*file_path_value, &file_path)) {

Powered by Google App Engine
This is Rietveld 408576698