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/ui/webui/uber/uber_ui.h" | 5 #include "chrome/browser/ui/webui/uber/uber_ui.h" |
6 | 6 |
7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
8 #include "base/stl_util.h" | 8 #include "base/stl_util.h" |
9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 // uninstalled and/or disabled). If one of these events has occurred, then | 241 // uninstalled and/or disabled). If one of these events has occurred, then |
242 // we must update the behavior of the History navigation element so that | 242 // we must update the behavior of the History navigation element so that |
243 // it opens the history extension if one is installed and enabled or | 243 // it opens the history extension if one is installed and enabled or |
244 // opens the default history page if one is uninstalled or disabled. | 244 // opens the default history page if one is uninstalled or disabled. |
245 UpdateHistoryNavigation(web_ui()); | 245 UpdateHistoryNavigation(web_ui()); |
246 } | 246 } |
247 | 247 |
248 void UberFrameUI::OnExtensionUnloaded( | 248 void UberFrameUI::OnExtensionUnloaded( |
249 content::BrowserContext* browser_context, | 249 content::BrowserContext* browser_context, |
250 const extensions::Extension* extension, | 250 const extensions::Extension* extension, |
251 extensions::UnloadedExtensionInfo::Reason reason) { | 251 extensions::UnloadedExtensionReason reason) { |
252 UpdateHistoryNavigation(web_ui()); | 252 UpdateHistoryNavigation(web_ui()); |
253 } | 253 } |
OLD | NEW |