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

Unified Diff: chrome/browser/extensions/extension_file_browser_private_api.cc

Issue 7649006: more changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix another typo Created 9 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/extensions/extension_file_browser_private_api.cc
diff --git a/chrome/browser/extensions/extension_file_browser_private_api.cc b/chrome/browser/extensions/extension_file_browser_private_api.cc
index 7856eb93aceb5a02bc078f191d2d59fe42dd84ed..006b3febb8b1f881be50281d4be1ed704384c7d5 100644
--- a/chrome/browser/extensions/extension_file_browser_private_api.cc
+++ b/chrome/browser/extensions/extension_file_browser_private_api.cc
@@ -233,7 +233,7 @@ void UpdateFileHandlerUsageStats(Profile* profile, const std::string& task_id) {
DictionaryPrefUpdate prefs_usage_update(profile->GetPrefs(),
prefs::kLastUsedFileBrowserHandlers);
prefs_usage_update->SetWithoutPathExpansion(task_id,
- new base::FundamentalValue(
+ base::NumberValue::New(
static_cast<int>(base::Time::Now().ToInternalValue()/
base::Time::kMicrosecondsPerSecond)));
}
@@ -460,7 +460,7 @@ bool FileWatchBrowserFunctionBase::GetLocalFilePath(
}
void FileWatchBrowserFunctionBase::RespondOnUIThread(bool success) {
- result_.reset(Value::CreateBooleanValue(success));
+ result_.reset(base::BooleanValue::New(success));
SendResponse(success);
}
@@ -796,7 +796,7 @@ bool ExecuteTasksFileBrowserFunction::InitiateFileTaskExecution(
source_url_,
task_id,
file_urls));
- result_.reset(new base::FundamentalValue(true));
+ result_.reset(base::TrueValue());
return true;
}
@@ -860,7 +860,7 @@ void ExecuteTasksFileBrowserFunction::ExecuteFileActionsOnUIThread(
}
scoped_ptr<ListValue> event_args(new ListValue());
- event_args->Append(Value::CreateStringValue(action_id));
+ event_args->Append(base::StringValue::New(action_id));
DictionaryValue* details = new DictionaryValue();
event_args->Append(details);
// Get file definitions. These will be replaced with Entry instances by
« no previous file with comments | « chrome/browser/extensions/extension_event_router.cc ('k') | chrome/browser/extensions/extension_history_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698