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

Unified Diff: chrome/browser/ui/webui/screenshot_source.cc

Issue 14884015: drive: Remove DriveFileType (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 7 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
« no previous file with comments | « chrome/browser/ui/webui/screenshot_source.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/screenshot_source.cc
diff --git a/chrome/browser/ui/webui/screenshot_source.cc b/chrome/browser/ui/webui/screenshot_source.cc
index d1bbafbd505833902a74d4c50d614ad50ff6bb34..750941e2bf03a7cf2304270953480cdb6f96fd88 100644
--- a/chrome/browser/ui/webui/screenshot_source.cc
+++ b/chrome/browser/ui/webui/screenshot_source.cc
@@ -246,9 +246,8 @@ void ScreenshotSource::GetSavedScreenshotCallback(
const content::URLDataSource::GotDataCallback& callback,
drive::FileError error,
const base::FilePath& file,
- const std::string& unused_mime_type,
- drive::DriveFileType file_type) {
- if (error != drive::FILE_ERROR_OK || file_type != drive::REGULAR_FILE) {
+ scoped_ptr<drive::ResourceEntry> entry) {
+ if (error != drive::FILE_ERROR_OK) {
ScreenshotDataPtr read_bytes(new ScreenshotData);
CacheAndSendScreenshot(screenshot_path, callback, read_bytes);
return;
« no previous file with comments | « chrome/browser/ui/webui/screenshot_source.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698