| 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/ui/login_web_dialog.h" |
| 11 #include "chrome/browser/chromeos/profiles/profile_helper.h" | 12 #include "chrome/browser/chromeos/profiles/profile_helper.h" |
| 12 #include "chrome/grit/generated_resources.h" | 13 #include "chrome/grit/generated_resources.h" |
| 13 #include "chrome/grit/locale_settings.h" | 14 #include "chrome/grit/locale_settings.h" |
| 14 #include "content/public/browser/browser_thread.h" | 15 #include "content/public/browser/browser_thread.h" |
| 15 #include "extensions/browser/extension_registry.h" | 16 #include "extensions/browser/extension_registry.h" |
| 16 #include "ui/base/l10n/l10n_util.h" | 17 #include "ui/base/l10n/l10n_util.h" |
| 17 #include "ui/gfx/geometry/rect.h" | 18 #include "ui/gfx/geometry/rect.h" |
| 18 #include "ui/gfx/geometry/size.h" | 19 #include "ui/gfx/geometry/size.h" |
| 20 #include "url/gurl.h" |
| 19 | 21 |
| 20 using content::BrowserThread; | 22 using content::BrowserThread; |
| 21 using extensions::ExtensionRegistry; | 23 using extensions::ExtensionRegistry; |
| 22 | 24 |
| 23 namespace { | 25 namespace { |
| 24 | 26 |
| 25 const char kHelpAppFormat[] = | 27 const char kHelpAppFormat[] = |
| 26 "chrome-extension://honijodknafkokifofgiaalefdiedpko/oobe.html?id=%d"; | 28 "chrome-extension://honijodknafkokifofgiaalefdiedpko/oobe.html?id=%d"; |
| 27 | 29 |
| 28 } // namespace | 30 } // namespace |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 topic_url); | 73 topic_url); |
| 72 dialog->SetDialogSize(l10n_util::GetLocalizedContentsWidthInPixels( | 74 dialog->SetDialogSize(l10n_util::GetLocalizedContentsWidthInPixels( |
| 73 IDS_HELP_APP_DIALOG_WIDTH_PIXELS), | 75 IDS_HELP_APP_DIALOG_WIDTH_PIXELS), |
| 74 l10n_util::GetLocalizedContentsWidthInPixels( | 76 l10n_util::GetLocalizedContentsWidthInPixels( |
| 75 IDS_HELP_APP_DIALOG_HEIGHT_PIXELS)); | 77 IDS_HELP_APP_DIALOG_HEIGHT_PIXELS)); |
| 76 dialog->Show(); | 78 dialog->Show(); |
| 77 // The dialog object will be deleted on dialog close. | 79 // The dialog object will be deleted on dialog close. |
| 78 } | 80 } |
| 79 | 81 |
| 80 } // namespace chromeos | 82 } // namespace chromeos |
| OLD | NEW |