| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/webui/app_launcher_page_ui.h" | 5 #include "chrome/browser/ui/webui/app_launcher_page_ui.h" |
| 6 | 6 |
| 7 #include "base/memory/ref_counted_memory.h" | 7 #include "base/memory/ref_counted_memory.h" |
| 8 #include "base/metrics/histogram.h" | 8 #include "base/metrics/histogram.h" |
| 9 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
| 10 #include "chrome/browser/ui/webui/metrics_handler.h" | 10 #include "chrome/browser/ui/webui/metrics_handler.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 #include "ui/base/resource/resource_bundle.h" | 23 #include "ui/base/resource/resource_bundle.h" |
| 24 | 24 |
| 25 #if defined(ENABLE_THEMES) | 25 #if defined(ENABLE_THEMES) |
| 26 #include "chrome/browser/ui/webui/theme_handler.h" | 26 #include "chrome/browser/ui/webui/theme_handler.h" |
| 27 #endif | 27 #endif |
| 28 | 28 |
| 29 class ExtensionService; | 29 class ExtensionService; |
| 30 | 30 |
| 31 using content::BrowserThread; | 31 using content::BrowserThread; |
| 32 | 32 |
| 33 namespace { | |
| 34 | |
| 35 const char kUmaPaintTimesLabel[] = "AppLauncherPageUI load"; | |
| 36 | |
| 37 } // namespace | |
| 38 | |
| 39 /////////////////////////////////////////////////////////////////////////////// | 33 /////////////////////////////////////////////////////////////////////////////// |
| 40 // AppLauncherPageUI | 34 // AppLauncherPageUI |
| 41 | 35 |
| 42 AppLauncherPageUI::AppLauncherPageUI(content::WebUI* web_ui) | 36 AppLauncherPageUI::AppLauncherPageUI(content::WebUI* web_ui) |
| 43 : content::WebUIController(web_ui) { | 37 : content::WebUIController(web_ui) { |
| 44 web_ui->OverrideTitle(l10n_util::GetStringUTF16(IDS_APP_LAUNCHER_TAB_TITLE)); | 38 web_ui->OverrideTitle(l10n_util::GetStringUTF16(IDS_APP_LAUNCHER_TAB_TITLE)); |
| 45 | 39 |
| 46 #if !defined(OS_ANDROID) | 40 #if !defined(OS_ANDROID) |
| 47 // Android uses native UI for sync setup. | 41 // Android uses native UI for sync setup. |
| 48 if (NTPLoginHandler::ShouldShow(GetProfile())) | 42 if (NTPLoginHandler::ShouldShow(GetProfile())) |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 | 119 |
| 126 bool AppLauncherPageUI::HTMLSource::ShouldReplaceExistingSource() const { | 120 bool AppLauncherPageUI::HTMLSource::ShouldReplaceExistingSource() const { |
| 127 return false; | 121 return false; |
| 128 } | 122 } |
| 129 | 123 |
| 130 bool AppLauncherPageUI::HTMLSource::ShouldAddContentSecurityPolicy() const { | 124 bool AppLauncherPageUI::HTMLSource::ShouldAddContentSecurityPolicy() const { |
| 131 return false; | 125 return false; |
| 132 } | 126 } |
| 133 | 127 |
| 134 AppLauncherPageUI::HTMLSource::~HTMLSource() {} | 128 AppLauncherPageUI::HTMLSource::~HTMLSource() {} |
| OLD | NEW |