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/app_list/app_list_view_delegate.h" | 5 #include "chrome/browser/ui/app_list/app_list_view_delegate.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "apps/custom_launcher_page_contents.h" | 9 #include "apps/custom_launcher_page_contents.h" |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
485 0); | 485 0); |
486 } | 486 } |
487 | 487 |
488 void AppListViewDelegate::OpenHelp() { | 488 void AppListViewDelegate::OpenHelp() { |
489 chrome::HostDesktopType desktop = chrome::GetHostDesktopTypeForNativeWindow( | 489 chrome::HostDesktopType desktop = chrome::GetHostDesktopTypeForNativeWindow( |
490 controller_->GetAppListWindow()); | 490 controller_->GetAppListWindow()); |
491 chrome::ScopedTabbedBrowserDisplayer displayer(profile_, desktop); | 491 chrome::ScopedTabbedBrowserDisplayer displayer(profile_, desktop); |
492 content::OpenURLParams params(GURL(chrome::kAppLauncherHelpURL), | 492 content::OpenURLParams params(GURL(chrome::kAppLauncherHelpURL), |
493 content::Referrer(), | 493 content::Referrer(), |
494 NEW_FOREGROUND_TAB, | 494 NEW_FOREGROUND_TAB, |
495 content::PAGE_TRANSITION_LINK, | 495 ui::PAGE_TRANSITION_LINK, |
496 false); | 496 false); |
497 displayer.browser()->OpenURL(params); | 497 displayer.browser()->OpenURL(params); |
498 } | 498 } |
499 | 499 |
500 void AppListViewDelegate::OpenFeedback() { | 500 void AppListViewDelegate::OpenFeedback() { |
501 chrome::HostDesktopType desktop = chrome::GetHostDesktopTypeForNativeWindow( | 501 chrome::HostDesktopType desktop = chrome::GetHostDesktopTypeForNativeWindow( |
502 controller_->GetAppListWindow()); | 502 controller_->GetAppListWindow()); |
503 Browser* browser = chrome::FindTabbedBrowser(profile_, false, desktop); | 503 Browser* browser = chrome::FindTabbedBrowser(profile_, false, desktop); |
504 chrome::ShowFeedbackPage(browser, std::string(), | 504 chrome::ShowFeedbackPage(browser, std::string(), |
505 chrome::kAppLauncherCategoryTag); | 505 chrome::kAppLauncherCategoryTag); |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
650 | 650 |
651 // SigninManagerFactory is not a leaky singleton (unlike this class), and | 651 // SigninManagerFactory is not a leaky singleton (unlike this class), and |
652 // its destructor will check that it has no remaining observers. | 652 // its destructor will check that it has no remaining observers. |
653 scoped_observer_.RemoveAll(); | 653 scoped_observer_.RemoveAll(); |
654 SigninManagerFactory::GetInstance()->RemoveObserver(this); | 654 SigninManagerFactory::GetInstance()->RemoveObserver(this); |
655 break; | 655 break; |
656 default: | 656 default: |
657 NOTREACHED(); | 657 NOTREACHED(); |
658 } | 658 } |
659 } | 659 } |
OLD | NEW |