| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/chromeos/login/wizard_controller.h" | 5 #include "chrome/browser/chromeos/login/wizard_controller.h" |
| 6 | 6 |
| 7 #include <gdk/gdk.h> | 7 #include <gdk/gdk.h> |
| 8 #include <signal.h> | 8 #include <signal.h> |
| 9 #include <sys/types.h> | 9 #include <sys/types.h> |
| 10 | 10 |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 controller->ShowRegistrationScreen(); | 152 controller->ShowRegistrationScreen(); |
| 153 #endif | 153 #endif |
| 154 } else { | 154 } else { |
| 155 return false; | 155 return false; |
| 156 } | 156 } |
| 157 | 157 |
| 158 return true; | 158 return true; |
| 159 } | 159 } |
| 160 | 160 |
| 161 virtual void Layout() { | 161 virtual void Layout() { |
| 162 for (int i = 0; i < GetChildViewCount(); ++i) { | 162 for (int i = 0; i < child_count(); ++i) { |
| 163 views::View* cur = GetChildViewAt(i); | 163 views::View* cur = GetChildViewAt(i); |
| 164 if (cur->IsVisible()) | 164 if (cur->IsVisible()) |
| 165 cur->SetBounds(0, 0, width(), height()); | 165 cur->SetBounds(0, 0, width(), height()); |
| 166 } | 166 } |
| 167 } | 167 } |
| 168 | 168 |
| 169 private: | 169 private: |
| 170 scoped_ptr<views::Painter> painter_; | 170 scoped_ptr<views::Painter> painter_; |
| 171 | 171 |
| 172 #if !defined(OFFICIAL_BUILD) | 172 #if !defined(OFFICIAL_BUILD) |
| (...skipping 860 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1033 // user has changed to during OOBE. | 1033 // user has changed to during OOBE. |
| 1034 if (!timezone_name.empty()) { | 1034 if (!timezone_name.empty()) { |
| 1035 icu::TimeZone* timezone = icu::TimeZone::createTimeZone( | 1035 icu::TimeZone* timezone = icu::TimeZone::createTimeZone( |
| 1036 icu::UnicodeString::fromUTF8(timezone_name)); | 1036 icu::UnicodeString::fromUTF8(timezone_name)); |
| 1037 chromeos::CrosLibrary::Get()->GetSystemLibrary()->SetTimezone(timezone); | 1037 chromeos::CrosLibrary::Get()->GetSystemLibrary()->SetTimezone(timezone); |
| 1038 } | 1038 } |
| 1039 } | 1039 } |
| 1040 } | 1040 } |
| 1041 | 1041 |
| 1042 } // namespace browser | 1042 } // namespace browser |
| OLD | NEW |