Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Side by Side Diff: chrome/browser/app_controller_mac.mm

Issue 1862513003: Remove NPAPI from browser and utility (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/browser_process_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #import "chrome/browser/app_controller_mac.h" 5 #import "chrome/browser/app_controller_mac.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/auto_reset.h" 9 #include "base/auto_reset.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 778 matching lines...) Expand 10 before | Expand all | Expand 10 after
789 localPrefRegistrar_.Add( 789 localPrefRegistrar_.Add(
790 prefs::kAllowFileSelectionDialogs, 790 prefs::kAllowFileSelectionDialogs,
791 base::Bind(&chrome::BrowserCommandController::UpdateOpenFileState, 791 base::Bind(&chrome::BrowserCommandController::UpdateOpenFileState,
792 menuState_.get())); 792 menuState_.get()));
793 } 793 }
794 794
795 handoff_active_url_observer_bridge_.reset( 795 handoff_active_url_observer_bridge_.reset(
796 new HandoffActiveURLObserverBridge(self)); 796 new HandoffActiveURLObserverBridge(self));
797 } 797 }
798 798
799 // This is called after profiles have been loaded and preferences registered.
800 // It is safe to access the default profile here.
801 - (void)applicationDidBecomeActive:(NSNotification*)notify {
802 content::PluginService::GetInstance()->AppActivated();
803 }
804
805 // Helper function for populating and displaying the in progress downloads at 799 // Helper function for populating and displaying the in progress downloads at
806 // exit alert panel. 800 // exit alert panel.
807 - (BOOL)userWillWaitForInProgressDownloads:(int)downloadCount { 801 - (BOOL)userWillWaitForInProgressDownloads:(int)downloadCount {
808 NSString* titleText = nil; 802 NSString* titleText = nil;
809 NSString* explanationText = nil; 803 NSString* explanationText = nil;
810 NSString* waitTitle = nil; 804 NSString* waitTitle = nil;
811 NSString* exitTitle = nil; 805 NSString* exitTitle = nil;
812 806
813 // Set the dialog text based on whether or not there are multiple downloads. 807 // Set the dialog text based on whether or not there are multiple downloads.
814 // Dialog text: warning and explanation. 808 // Dialog text: warning and explanation.
(...skipping 890 matching lines...) Expand 10 before | Expand all | Expand 10 after
1705 1699
1706 //--------------------------------------------------------------------------- 1700 //---------------------------------------------------------------------------
1707 1701
1708 namespace app_controller_mac { 1702 namespace app_controller_mac {
1709 1703
1710 bool IsOpeningNewWindow() { 1704 bool IsOpeningNewWindow() {
1711 return g_is_opening_new_window; 1705 return g_is_opening_new_window;
1712 } 1706 }
1713 1707
1714 } // namespace app_controller_mac 1708 } // namespace app_controller_mac
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/browser_process_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698