| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/ui/webui/options/chromeos/change_picture_options_handle
r.h" | 5 #include "chrome/browser/ui/webui/options/chromeos/change_picture_options_handle
r.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 | 53 |
| 54 file_type_info.extensions[0].push_back(FILE_PATH_LITERAL("png")); | 54 file_type_info.extensions[0].push_back(FILE_PATH_LITERAL("png")); |
| 55 | 55 |
| 56 file_type_info.extensions[0].push_back(FILE_PATH_LITERAL("tif")); | 56 file_type_info.extensions[0].push_back(FILE_PATH_LITERAL("tif")); |
| 57 file_type_info.extensions[0].push_back(FILE_PATH_LITERAL("tiff")); | 57 file_type_info.extensions[0].push_back(FILE_PATH_LITERAL("tiff")); |
| 58 | 58 |
| 59 file_type_info.extension_description_overrides.resize(1); | 59 file_type_info.extension_description_overrides.resize(1); |
| 60 file_type_info.extension_description_overrides[0] = | 60 file_type_info.extension_description_overrides[0] = |
| 61 l10n_util::GetStringUTF16(IDS_IMAGE_FILES); | 61 l10n_util::GetStringUTF16(IDS_IMAGE_FILES); |
| 62 | 62 |
| 63 file_type_info.support_gdata = true; |
| 63 return file_type_info; | 64 return file_type_info; |
| 64 } | 65 } |
| 65 | 66 |
| 66 // Time histogram suffix for profile image download. | 67 // Time histogram suffix for profile image download. |
| 67 const char kProfileDownloadReason[] = "Preferences"; | 68 const char kProfileDownloadReason[] = "Preferences"; |
| 68 | 69 |
| 69 } // namespace | 70 } // namespace |
| 70 | 71 |
| 71 ChangePictureOptionsHandler::ChangePictureOptionsHandler() | 72 ChangePictureOptionsHandler::ChangePictureOptionsHandler() |
| 72 : previous_image_data_url_(chrome::kAboutBlankURL), | 73 : previous_image_data_url_(chrome::kAboutBlankURL), |
| (...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 442 OnPhotoAccepted(user_photo_); | 443 OnPhotoAccepted(user_photo_); |
| 443 } | 444 } |
| 444 | 445 |
| 445 void ChangePictureOptionsHandler::OnDecodeImageFailed( | 446 void ChangePictureOptionsHandler::OnDecodeImageFailed( |
| 446 const ImageDecoder* decoder) { | 447 const ImageDecoder* decoder) { |
| 447 NOTREACHED() << "Failed to decode PNG image from WebUI"; | 448 NOTREACHED() << "Failed to decode PNG image from WebUI"; |
| 448 } | 449 } |
| 449 | 450 |
| 450 } // namespace options | 451 } // namespace options |
| 451 } // namespace chromeos | 452 } // namespace chromeos |
| OLD | NEW |