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/chromeos/login/help_app_launcher.h" | 5 #include "chrome/browser/chromeos/login/help_app_launcher.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/strings/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
11 #include "chrome/browser/chromeos/login/helper.h" | 11 #include "chrome/browser/chromeos/login/helper.h" |
12 #include "chrome/browser/chromeos/profiles/profile_helper.h" | 12 #include "chrome/browser/chromeos/profiles/profile_helper.h" |
13 #include "chrome/browser/extensions/extension_service.h" | 13 #include "chrome/browser/extensions/extension_service.h" |
| 14 #include "chrome/grit/generated_resources.h" |
| 15 #include "chrome/grit/locale_settings.h" |
14 #include "content/public/browser/browser_thread.h" | 16 #include "content/public/browser/browser_thread.h" |
15 #include "extensions/browser/extension_system.h" | 17 #include "extensions/browser/extension_system.h" |
16 #include "grit/generated_resources.h" | |
17 #include "grit/locale_settings.h" | |
18 #include "ui/base/l10n/l10n_util.h" | 18 #include "ui/base/l10n/l10n_util.h" |
19 #include "ui/gfx/rect.h" | 19 #include "ui/gfx/rect.h" |
20 #include "ui/gfx/size.h" | 20 #include "ui/gfx/size.h" |
21 | 21 |
22 using content::BrowserThread; | 22 using content::BrowserThread; |
23 | 23 |
24 namespace { | 24 namespace { |
25 | 25 |
26 const char kHelpAppFormat[] = | 26 const char kHelpAppFormat[] = |
27 "chrome-extension://honijodknafkokifofgiaalefdiedpko/oobe.html?id=%d"; | 27 "chrome-extension://honijodknafkokifofgiaalefdiedpko/oobe.html?id=%d"; |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 gfx::Rect screen_bounds(chromeos::CalculateScreenBounds(gfx::Size())); | 75 gfx::Rect screen_bounds(chromeos::CalculateScreenBounds(gfx::Size())); |
76 dialog->SetDialogSize(l10n_util::GetLocalizedContentsWidthInPixels( | 76 dialog->SetDialogSize(l10n_util::GetLocalizedContentsWidthInPixels( |
77 IDS_HELP_APP_DIALOG_WIDTH_PIXELS), | 77 IDS_HELP_APP_DIALOG_WIDTH_PIXELS), |
78 l10n_util::GetLocalizedContentsWidthInPixels( | 78 l10n_util::GetLocalizedContentsWidthInPixels( |
79 IDS_HELP_APP_DIALOG_HEIGHT_PIXELS)); | 79 IDS_HELP_APP_DIALOG_HEIGHT_PIXELS)); |
80 dialog->Show(); | 80 dialog->Show(); |
81 // The dialog object will be deleted on dialog close. | 81 // The dialog object will be deleted on dialog close. |
82 } | 82 } |
83 | 83 |
84 } // namespace chromeos | 84 } // namespace chromeos |
OLD | NEW |