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

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

Issue 514293003: Run athena on chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed comments, rebase Created 6 years, 3 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
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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 #include "chrome/browser/signin/chrome_signin_client.h" 186 #include "chrome/browser/signin/chrome_signin_client.h"
187 #include "chrome/browser/signin/chrome_signin_client_factory.h" 187 #include "chrome/browser/signin/chrome_signin_client_factory.h"
188 #include "chrome/browser/signin/signin_manager_factory.h" 188 #include "chrome/browser/signin/signin_manager_factory.h"
189 #include "components/signin/core/browser/signin_manager.h" 189 #include "components/signin/core/browser/signin_manager.h"
190 #endif 190 #endif
191 191
192 #if defined(TOOLKIT_VIEWS) 192 #if defined(TOOLKIT_VIEWS)
193 #include "chrome/browser/ui/views/chrome_browser_main_extra_parts_views.h" 193 #include "chrome/browser/ui/views/chrome_browser_main_extra_parts_views.h"
194 #endif 194 #endif
195 195
196 #if defined(USE_ASH) 196 #if defined(USE_ATHENA)
197 #include "chrome/browser/ui/views/athena/chrome_browser_main_extra_parts_athena. h"
198 #elif defined(USE_ASH)
197 #include "chrome/browser/ui/views/ash/chrome_browser_main_extra_parts_ash.h" 199 #include "chrome/browser/ui/views/ash/chrome_browser_main_extra_parts_ash.h"
198 #endif 200 #endif
199 201
200 #if defined(USE_AURA) 202 #if defined(USE_AURA)
201 #include "chrome/browser/ui/aura/chrome_browser_main_extra_parts_aura.h" 203 #include "chrome/browser/ui/aura/chrome_browser_main_extra_parts_aura.h"
202 #endif 204 #endif
203 205
204 #if defined(USE_X11) 206 #if defined(USE_X11)
205 #include "chrome/browser/chrome_browser_main_extra_parts_x11.h" 207 #include "chrome/browser/chrome_browser_main_extra_parts_x11.h"
206 #endif 208 #endif
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after
669 #endif 671 #endif
670 672
671 chrome::AddProfilesExtraParts(main_parts); 673 chrome::AddProfilesExtraParts(main_parts);
672 674
673 // Construct additional browser parts. Stages are called in the order in 675 // Construct additional browser parts. Stages are called in the order in
674 // which they are added. 676 // which they are added.
675 #if defined(TOOLKIT_VIEWS) 677 #if defined(TOOLKIT_VIEWS)
676 main_parts->AddParts(new ChromeBrowserMainExtraPartsViews()); 678 main_parts->AddParts(new ChromeBrowserMainExtraPartsViews());
677 #endif 679 #endif
678 680
679 #if defined(USE_ASH) 681 // TODO(oshima): Athena on chrome currently requires USE_ASH to build.
682 // We should reduce the dependency as much as possible.
683 #if defined(USE_ATHENA)
684 main_parts->AddParts(CreateChromeBrowserMainExtraPartsAthena());
685 #elif defined(USE_ASH)
680 main_parts->AddParts(new ChromeBrowserMainExtraPartsAsh()); 686 main_parts->AddParts(new ChromeBrowserMainExtraPartsAsh());
681 #endif 687 #endif
682 688
683 #if defined(USE_AURA) 689 #if defined(USE_AURA)
684 main_parts->AddParts(new ChromeBrowserMainExtraPartsAura()); 690 main_parts->AddParts(new ChromeBrowserMainExtraPartsAura());
685 #endif 691 #endif
686 692
687 #if defined(USE_X11) 693 #if defined(USE_X11)
688 main_parts->AddParts(new ChromeBrowserMainExtraPartsX11()); 694 main_parts->AddParts(new ChromeBrowserMainExtraPartsX11());
689 #endif 695 #endif
(...skipping 1892 matching lines...) Expand 10 before | Expand all | Expand 10 after
2582 switches::kDisableWebRtcEncryption, 2588 switches::kDisableWebRtcEncryption,
2583 }; 2589 };
2584 to_command_line->CopySwitchesFrom(from_command_line, 2590 to_command_line->CopySwitchesFrom(from_command_line,
2585 kWebRtcDevSwitchNames, 2591 kWebRtcDevSwitchNames,
2586 arraysize(kWebRtcDevSwitchNames)); 2592 arraysize(kWebRtcDevSwitchNames));
2587 } 2593 }
2588 } 2594 }
2589 #endif // defined(ENABLE_WEBRTC) 2595 #endif // defined(ENABLE_WEBRTC)
2590 2596
2591 } // namespace chrome 2597 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/browser_process_impl.cc ('k') | chrome/browser/chromeos/chrome_browser_main_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698