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

Side by Side Diff: chrome/browser/ui/webui/options2/chromeos/change_picture_options_handler.cc

Issue 10857071: Options: Rename options2 namespace to options. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fix. 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/options2/chromeos/change_picture_options_handl er.h" 5 #include "chrome/browser/ui/webui/options2/chromeos/change_picture_options_handl er.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 19 matching lines...) Expand all
30 #include "content/public/common/url_constants.h" 30 #include "content/public/common/url_constants.h"
31 #include "googleurl/src/gurl.h" 31 #include "googleurl/src/gurl.h"
32 #include "grit/generated_resources.h" 32 #include "grit/generated_resources.h"
33 #include "grit/theme_resources.h" 33 #include "grit/theme_resources.h"
34 #include "net/base/data_url.h" 34 #include "net/base/data_url.h"
35 #include "ui/base/l10n/l10n_util.h" 35 #include "ui/base/l10n/l10n_util.h"
36 #include "ui/base/resource/resource_bundle.h" 36 #include "ui/base/resource/resource_bundle.h"
37 #include "ui/views/widget/widget.h" 37 #include "ui/views/widget/widget.h"
38 38
39 namespace chromeos { 39 namespace chromeos {
40 namespace options2 { 40 namespace options {
41 41
42 namespace { 42 namespace {
43 43
44 // Returns info about extensions for files we support as user images. 44 // Returns info about extensions for files we support as user images.
45 ui::SelectFileDialog::FileTypeInfo GetUserImageFileTypeInfo() { 45 ui::SelectFileDialog::FileTypeInfo GetUserImageFileTypeInfo() {
46 ui::SelectFileDialog::FileTypeInfo file_type_info; 46 ui::SelectFileDialog::FileTypeInfo file_type_info;
47 file_type_info.extensions.resize(1); 47 file_type_info.extensions.resize(1);
48 48
49 file_type_info.extensions[0].push_back(FILE_PATH_LITERAL("bmp")); 49 file_type_info.extensions[0].push_back(FILE_PATH_LITERAL("bmp"));
50 50
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after
439 image_decoder_ = NULL; 439 image_decoder_ = NULL;
440 user_photo_ = gfx::ImageSkia(decoded_image); 440 user_photo_ = gfx::ImageSkia(decoded_image);
441 OnPhotoAccepted(user_photo_); 441 OnPhotoAccepted(user_photo_);
442 } 442 }
443 443
444 void ChangePictureOptionsHandler::OnDecodeImageFailed( 444 void ChangePictureOptionsHandler::OnDecodeImageFailed(
445 const ImageDecoder* decoder) { 445 const ImageDecoder* decoder) {
446 NOTREACHED() << "Failed to decode PNG image from WebUI"; 446 NOTREACHED() << "Failed to decode PNG image from WebUI";
447 } 447 }
448 448
449 } // namespace options2 449 } // namespace options
450 } // namespace chromeos 450 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698