OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/views/new_profile_dialog.h" | 5 #include "chrome/browser/views/new_profile_dialog.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "app/l10n_util.h" | 9 #include "app/l10n_util.h" |
10 #include "app/message_box_flags.h" | 10 #include "app/message_box_flags.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/file_util.h" | 12 #include "base/i18n/file_util_icu.h" |
13 #include "chrome/browser/user_data_manager.h" | 13 #include "chrome/browser/user_data_manager.h" |
14 #include "grit/chromium_strings.h" | 14 #include "grit/chromium_strings.h" |
15 #include "grit/generated_resources.h" | 15 #include "grit/generated_resources.h" |
16 #include "grit/locale_settings.h" | 16 #include "grit/locale_settings.h" |
17 #include "views/controls/message_box_view.h" | 17 #include "views/controls/message_box_view.h" |
18 #include "views/controls/textfield/textfield.h" | 18 #include "views/controls/textfield/textfield.h" |
19 #include "views/view.h" | 19 #include "views/view.h" |
20 #include "views/window/window.h" | 20 #include "views/window/window.h" |
21 | 21 |
22 namespace browser { | 22 namespace browser { |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 UserDataManager::Get()->CreateDesktopShortcutForProfile( | 101 UserDataManager::Get()->CreateDesktopShortcutForProfile( |
102 profile_name); | 102 profile_name); |
103 | 103 |
104 UserDataManager::Get()->LaunchChromeForProfile(profile_name); | 104 UserDataManager::Get()->LaunchChromeForProfile(profile_name); |
105 return true; | 105 return true; |
106 } | 106 } |
107 | 107 |
108 views::View* NewProfileDialog::GetContentsView() { | 108 views::View* NewProfileDialog::GetContentsView() { |
109 return message_box_view_; | 109 return message_box_view_; |
110 } | 110 } |
OLD | NEW |