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

Side by Side Diff: chrome/browser/chrome_content_browser_client.cc

Issue 400543002: MacViews: Fix BrowserClient for toolkit-views on Mac (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: -chrome_views_delegate Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/ui/aura/chrome_browser_main_extra_parts_aura.h » ('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 #include "chrome/browser/chrome_content_browser_client.h" 5 #include "chrome/browser/chrome_content_browser_client.h"
6 6
7 #include <set> 7 #include <set>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 718 matching lines...) Expand 10 before | Expand all | Expand 10 after
729 main_parts = new ChromeBrowserMainPartsPosix(parameters); 729 main_parts = new ChromeBrowserMainPartsPosix(parameters);
730 #else 730 #else
731 NOTREACHED(); 731 NOTREACHED();
732 main_parts = new ChromeBrowserMainParts(parameters); 732 main_parts = new ChromeBrowserMainParts(parameters);
733 #endif 733 #endif
734 734
735 chrome::AddProfilesExtraParts(main_parts); 735 chrome::AddProfilesExtraParts(main_parts);
736 736
737 // Construct additional browser parts. Stages are called in the order in 737 // Construct additional browser parts. Stages are called in the order in
738 // which they are added. 738 // which they are added.
739 #if defined(USE_AURA)
740 main_parts->AddParts(new ChromeBrowserMainExtraPartsAura());
741 #endif
tapted 2014/07/17 13:55:04 Moved this up because Ash does stuff like `OpenAsh
sky 2014/07/17 16:12:13 I this code would be cleaner if we keep ChromeBrow
742
739 #if defined(TOOLKIT_VIEWS) 743 #if defined(TOOLKIT_VIEWS)
740 main_parts->AddParts(new ChromeBrowserMainExtraPartsViews()); 744 main_parts->AddParts(new ChromeBrowserMainExtraPartsViews());
741 #endif 745 #endif
742 746
743 #if defined(USE_ASH) 747 #if defined(USE_ASH)
744 main_parts->AddParts(new ChromeBrowserMainExtraPartsAsh()); 748 main_parts->AddParts(new ChromeBrowserMainExtraPartsAsh());
745 #endif 749 #endif
746 750
747 #if defined(USE_AURA)
748 main_parts->AddParts(new ChromeBrowserMainExtraPartsAura());
749 #endif
750
751 #if defined(USE_X11) 751 #if defined(USE_X11)
752 main_parts->AddParts(new ChromeBrowserMainExtraPartsX11()); 752 main_parts->AddParts(new ChromeBrowserMainExtraPartsX11());
753 #endif 753 #endif
754 754
755 chrome::AddMetricsExtraParts(main_parts); 755 chrome::AddMetricsExtraParts(main_parts);
756 756
757 return main_parts; 757 return main_parts;
758 } 758 }
759 759
760 std::string ChromeContentBrowserClient::GetStoragePartitionIdForSite( 760 std::string ChromeContentBrowserClient::GetStoragePartitionIdForSite(
(...skipping 2154 matching lines...) Expand 10 before | Expand all | Expand 10 after
2915 switches::kDisableWebRtcEncryption, 2915 switches::kDisableWebRtcEncryption,
2916 }; 2916 };
2917 to_command_line->CopySwitchesFrom(from_command_line, 2917 to_command_line->CopySwitchesFrom(from_command_line,
2918 kWebRtcDevSwitchNames, 2918 kWebRtcDevSwitchNames,
2919 arraysize(kWebRtcDevSwitchNames)); 2919 arraysize(kWebRtcDevSwitchNames));
2920 } 2920 }
2921 } 2921 }
2922 #endif // defined(ENABLE_WEBRTC) 2922 #endif // defined(ENABLE_WEBRTC)
2923 2923
2924 } // namespace chrome 2924 } // namespace chrome
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/aura/chrome_browser_main_extra_parts_aura.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698