| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/views/about_chrome_view.h" | 5 #include "chrome/browser/ui/views/about_chrome_view.h" |
| 6 | 6 |
| 7 #if defined(OS_WIN) | 7 #if defined(OS_WIN) |
| 8 #include <commdlg.h> | 8 #include <commdlg.h> |
| 9 #endif // defined(OS_WIN) | 9 #endif // defined(OS_WIN) |
| 10 | 10 |
| 11 #include <algorithm> | 11 #include <algorithm> |
| 12 #include <vector> | 12 #include <vector> |
| 13 | 13 |
| 14 #include "base/callback.h" | 14 #include "base/callback.h" |
| 15 #include "base/i18n/rtl.h" | 15 #include "base/i18n/rtl.h" |
| 16 #include "base/string_number_conversions.h" | 16 #include "base/string_number_conversions.h" |
| 17 #include "base/utf_string_conversions.h" | 17 #include "base/utf_string_conversions.h" |
| 18 #include "base/win/windows_version.h" | 18 #include "base/win/windows_version.h" |
| 19 #include "chrome/browser/google/google_util.h" | 19 #include "chrome/browser/google/google_util.h" |
| 20 #include "chrome/browser/prefs/pref_service.h" | 20 #include "chrome/browser/prefs/pref_service.h" |
| 21 #include "chrome/browser/platform_util.h" | |
| 22 #include "chrome/browser/ui/browser_list.h" | 21 #include "chrome/browser/ui/browser_list.h" |
| 23 #include "chrome/browser/ui/views/window.h" | 22 #include "chrome/browser/ui/views/window.h" |
| 24 #include "chrome/common/chrome_constants.h" | 23 #include "chrome/common/chrome_constants.h" |
| 25 #include "chrome/common/chrome_version_info.h" | 24 #include "chrome/common/chrome_version_info.h" |
| 26 #include "chrome/common/url_constants.h" | 25 #include "chrome/common/url_constants.h" |
| 27 #include "chrome/installer/util/browser_distribution.h" | 26 #include "chrome/installer/util/browser_distribution.h" |
| 28 #include "content/browser/user_metrics.h" | 27 #include "content/browser/user_metrics.h" |
| 29 #include "grit/chromium_strings.h" | 28 #include "grit/chromium_strings.h" |
| 30 #include "grit/generated_resources.h" | 29 #include "grit/generated_resources.h" |
| 31 #include "grit/locale_settings.h" | 30 #include "grit/locale_settings.h" |
| (...skipping 700 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 732 // We have updated controls on the parent, so we need to update its layout. | 731 // We have updated controls on the parent, so we need to update its layout. |
| 733 parent()->Layout(); | 732 parent()->Layout(); |
| 734 | 733 |
| 735 // Check button may have appeared/disappeared. We cannot call this during | 734 // Check button may have appeared/disappeared. We cannot call this during |
| 736 // ViewHierarchyChanged because the view hasn't been added to a Widget yet. | 735 // ViewHierarchyChanged because the view hasn't been added to a Widget yet. |
| 737 if (GetWidget()) | 736 if (GetWidget()) |
| 738 GetDialogClientView()->UpdateDialogButtons(); | 737 GetDialogClientView()->UpdateDialogButtons(); |
| 739 } | 738 } |
| 740 | 739 |
| 741 #endif | 740 #endif |
| OLD | NEW |