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

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

Issue 2645323004: win: Register synthetic field trial for clang builds. (Closed)
Patch Set: Created 3 years, 11 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 | « no previous file | no next file » | 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_browser_main.h" 5 #include "chrome/browser/chrome_browser_main.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <set> 10 #include <set>
(...skipping 1336 matching lines...) Expand 10 before | Expand all | Expand 10 after
1347 TRACE_EVENT0("startup", "ChromeBrowserMainParts::PreBrowserStart"); 1347 TRACE_EVENT0("startup", "ChromeBrowserMainParts::PreBrowserStart");
1348 for (size_t i = 0; i < chrome_extra_parts_.size(); ++i) 1348 for (size_t i = 0; i < chrome_extra_parts_.size(); ++i)
1349 chrome_extra_parts_[i]->PreBrowserStart(); 1349 chrome_extra_parts_[i]->PreBrowserStart();
1350 1350
1351 three_d_observer_.reset(new ThreeDAPIObserver()); 1351 three_d_observer_.reset(new ThreeDAPIObserver());
1352 1352
1353 #if defined(SYZYASAN) 1353 #if defined(SYZYASAN)
1354 SetupSyzyASAN(); 1354 SetupSyzyASAN();
1355 #endif 1355 #endif
1356 1356
1357 #if defined(OS_WIN)
1358 ChromeMetricsServiceAccessor::RegisterSyntheticFieldTrial("ChromeWinClang",
1359 #if defined(__clang__)
1360 "Enabled"
1361 #else
1362 "Disabled"
1363 #endif
1364 );
1365 #endif
1366
1357 // Start the tab manager here so that we give the most amount of time for the 1367 // Start the tab manager here so that we give the most amount of time for the
1358 // other services to start up before we start adjusting the oom priority. 1368 // other services to start up before we start adjusting the oom priority.
1359 #if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) 1369 #if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX)
1360 g_browser_process->GetTabManager()->Start(); 1370 g_browser_process->GetTabManager()->Start();
1361 #endif 1371 #endif
1362 1372
1363 // The RulesetService will make the filtering rules available to renderers 1373 // The RulesetService will make the filtering rules available to renderers
1364 // immediately after its construction, provided that the rules are already 1374 // immediately after its construction, provided that the rules are already
1365 // available at no cost in an indexed format. This enables activating 1375 // available at no cost in an indexed format. This enables activating
1366 // subresource filtering, if needed, also for page loads on start-up. 1376 // subresource filtering, if needed, also for page loads on start-up.
(...skipping 733 matching lines...) Expand 10 before | Expand all | Expand 10 after
2100 chromeos::CrosSettings::Shutdown(); 2110 chromeos::CrosSettings::Shutdown();
2101 #endif // defined(OS_CHROMEOS) 2111 #endif // defined(OS_CHROMEOS)
2102 #endif // defined(OS_ANDROID) 2112 #endif // defined(OS_ANDROID)
2103 } 2113 }
2104 2114
2105 // Public members: 2115 // Public members:
2106 2116
2107 void ChromeBrowserMainParts::AddParts(ChromeBrowserMainExtraParts* parts) { 2117 void ChromeBrowserMainParts::AddParts(ChromeBrowserMainExtraParts* parts) {
2108 chrome_extra_parts_.push_back(parts); 2118 chrome_extra_parts_.push_back(parts);
2109 } 2119 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698