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

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: 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 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
673 #endif 675 #endif
674 676
675 chrome::AddProfilesExtraParts(main_parts); 677 chrome::AddProfilesExtraParts(main_parts);
676 678
677 // Construct additional browser parts. Stages are called in the order in 679 // Construct additional browser parts. Stages are called in the order in
678 // which they are added. 680 // which they are added.
679 #if defined(TOOLKIT_VIEWS) 681 #if defined(TOOLKIT_VIEWS)
680 main_parts->AddParts(new ChromeBrowserMainExtraPartsViews()); 682 main_parts->AddParts(new ChromeBrowserMainExtraPartsViews());
681 #endif 683 #endif
682 684
683 #if defined(USE_ASH) 685 // TODO(oshima): Athena on chrome currently requires USE_ASH to build.
686 // We should reduce the dependency as much as possible.
687 #if defined(USE_ATHENA)
688 main_parts->AddParts(CreateChromeBrowserMainExtraPartsAthena());
Mr4D (OOO till 08-26) 2014/08/29 00:09:58 I leave this to you, but every other function uses
oshima 2014/08/29 00:44:43 I'm going to just follow the OWNERS recommendation
689 #elif defined(USE_ASH)
684 main_parts->AddParts(new ChromeBrowserMainExtraPartsAsh()); 690 main_parts->AddParts(new ChromeBrowserMainExtraPartsAsh());
685 #endif 691 #endif
686 692
687 #if defined(USE_AURA) 693 #if defined(USE_AURA)
688 main_parts->AddParts(new ChromeBrowserMainExtraPartsAura()); 694 main_parts->AddParts(new ChromeBrowserMainExtraPartsAura());
689 #endif 695 #endif
690 696
691 #if defined(USE_X11) 697 #if defined(USE_X11)
692 main_parts->AddParts(new ChromeBrowserMainExtraPartsX11()); 698 main_parts->AddParts(new ChromeBrowserMainExtraPartsX11());
693 #endif 699 #endif
(...skipping 1891 matching lines...) Expand 10 before | Expand all | Expand 10 after
2585 switches::kDisableWebRtcEncryption, 2591 switches::kDisableWebRtcEncryption,
2586 }; 2592 };
2587 to_command_line->CopySwitchesFrom(from_command_line, 2593 to_command_line->CopySwitchesFrom(from_command_line,
2588 kWebRtcDevSwitchNames, 2594 kWebRtcDevSwitchNames,
2589 arraysize(kWebRtcDevSwitchNames)); 2595 arraysize(kWebRtcDevSwitchNames));
2590 } 2596 }
2591 } 2597 }
2592 #endif // defined(ENABLE_WEBRTC) 2598 #endif // defined(ENABLE_WEBRTC)
2593 2599
2594 } // namespace chrome 2600 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698