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

Side by Side Diff: chrome/browser/net/http_pipelining_compatibility_client.cc

Issue 10170044: Expand pipelining trial to 100% of dev channel. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | Annotate | Revision Log
« 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/net/http_pipelining_compatibility_client.h" 5 #include "chrome/browser/net/http_pipelining_compatibility_client.h"
6 6
7 #include "base/metrics/field_trial.h" 7 #include "base/metrics/field_trial.h"
8 #include "base/metrics/histogram.h" 8 #include "base/metrics/histogram.h"
9 #include "base/string_number_conversions.h" 9 #include "base/string_number_conversions.h"
10 #include "base/string_split.h" 10 #include "base/string_split.h"
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after
455 } 455 }
456 456
457 const base::FieldTrial::Probability kDivisor = 100; 457 const base::FieldTrial::Probability kDivisor = 100;
458 base::FieldTrial::Probability probability_to_run_test = 0; 458 base::FieldTrial::Probability probability_to_run_test = 0;
459 459
460 const char* kTrialName = "HttpPipeliningCompatibility"; 460 const char* kTrialName = "HttpPipeliningCompatibility";
461 base::FieldTrial* trial = base::FieldTrialList::Find(kTrialName); 461 base::FieldTrial* trial = base::FieldTrialList::Find(kTrialName);
462 if (trial) { 462 if (trial) {
463 return; 463 return;
464 } 464 }
465 // After April 21, 2012, the trial will disable itself. 465 // After May 4, 2012, the trial will disable itself.
466 trial = base::FieldTrialList::FactoryGetFieldTrial( 466 trial = base::FieldTrialList::FactoryGetFieldTrial(
467 kTrialName, kDivisor, "disable_test", 2012, 4, 21, NULL); 467 kTrialName, kDivisor, "disable_test", 2012, 5, 4, NULL);
468 468
469 chrome::VersionInfo::Channel channel = chrome::VersionInfo::GetChannel(); 469 chrome::VersionInfo::Channel channel = chrome::VersionInfo::GetChannel();
470 if (channel == chrome::VersionInfo::CHANNEL_CANARY) { 470 if (channel == chrome::VersionInfo::CHANNEL_CANARY) {
471 probability_to_run_test = 100; 471 probability_to_run_test = 100;
472 } else if (channel == chrome::VersionInfo::CHANNEL_DEV) { 472 } else if (channel == chrome::VersionInfo::CHANNEL_DEV) {
473 probability_to_run_test = 10; 473 probability_to_run_test = 100;
474 } 474 }
475 475
476 int collect_stats_group = trial->AppendGroup("enable_test", 476 int collect_stats_group = trial->AppendGroup("enable_test",
477 probability_to_run_test); 477 probability_to_run_test);
478 if (trial->group() != collect_stats_group) { 478 if (trial->group() != collect_stats_group) {
479 return; 479 return;
480 } 480 }
481 481
482 std::vector<RequestInfo> requests; 482 std::vector<RequestInfo> requests;
483 483
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 525
526 content::BrowserThread::PostTask( 526 content::BrowserThread::PostTask(
527 content::BrowserThread::IO, 527 content::BrowserThread::IO,
528 FROM_HERE, 528 FROM_HERE,
529 base::Bind(&CollectPipeliningCapabilityStatsOnIOThread, 529 base::Bind(&CollectPipeliningCapabilityStatsOnIOThread,
530 pipeline_test_server, 530 pipeline_test_server,
531 io_thread)); 531 io_thread));
532 } 532 }
533 533
534 } // namespace chrome_browser_net 534 } // namespace chrome_browser_net
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