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

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: David's comments Created 8 years, 4 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 9ff6ccbe0dc7a0220a9e679e3bf6ee4f4b36a9ff..0fe67b0be1cdc1b5eeec7993f5359e757f7a4455 100644
--- a/chrome/browser/ui/webui/options2/manage_profile_handler.cc
+++ b/chrome/browser/ui/webui/options2/manage_profile_handler.cc
@@ -152,7 +152,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))
@@ -239,7 +239,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))
@@ -253,7 +253,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)) {
« no previous file with comments | « chrome/browser/ui/webui/options2/handler_options_handler.cc ('k') | chrome/browser/ui/webui/options2/startup_pages_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698