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

Side by Side Diff: chrome/browser/chromeos/chrome_browser_main_chromeos.cc

Issue 10332255: Fix typos in field trial for low memory experiment. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: upload after merge Created 8 years, 7 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/chromeos/oom_priority_manager.cc » ('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/chromeos/chrome_browser_main_chromeos.h" 5 #include "chrome/browser/chromeos/chrome_browser_main_chromeos.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after
517 base::FieldTrialList::FactoryGetFieldTrial( 517 base::FieldTrialList::FactoryGetFieldTrial(
518 "LowMemoryMargin", kDivisor, "default", 2012, 6, 30, NULL); 518 "LowMemoryMargin", kDivisor, "default", 2012, 6, 30, NULL);
519 int disable = trial->AppendGroup("off", kEnableProbability); 519 int disable = trial->AppendGroup("off", kEnableProbability);
520 int margin_0mb = trial->AppendGroup("0mb", kEnableProbability); 520 int margin_0mb = trial->AppendGroup("0mb", kEnableProbability);
521 int margin_25mb = trial->AppendGroup("25mb", kEnableProbability); 521 int margin_25mb = trial->AppendGroup("25mb", kEnableProbability);
522 int margin_50mb = trial->AppendGroup("50mb", kEnableProbability); 522 int margin_50mb = trial->AppendGroup("50mb", kEnableProbability);
523 int margin_100mb = trial->AppendGroup("100mb", kEnableProbability); 523 int margin_100mb = trial->AppendGroup("100mb", kEnableProbability);
524 int margin_200mb = trial->AppendGroup("200mb", kEnableProbability); 524 int margin_200mb = trial->AppendGroup("200mb", kEnableProbability);
525 if (trial->group() == disable) { 525 if (trial->group() == disable) {
526 LOG(WARNING) << "low_mem: Part of 'off' experiment"; 526 LOG(WARNING) << "low_mem: Part of 'off' experiment";
527 chromeos::LowMemoryObserver::SetLowMemoryMargin(0); 527 chromeos::LowMemoryObserver::SetLowMemoryMargin(-1);
528 } else if (trial->group() == margin_0mb) { 528 } else if (trial->group() == margin_0mb) {
529 LOG(WARNING) << "low_mem: Part of '0MB' experiment"; 529 LOG(WARNING) << "low_mem: Part of '0MB' experiment";
530 chromeos::LowMemoryObserver::SetLowMemoryMargin(50); 530 chromeos::LowMemoryObserver::SetLowMemoryMargin(0);
531 } else if (trial->group() == margin_25mb) { 531 } else if (trial->group() == margin_25mb) {
532 LOG(WARNING) << "low_mem: Part of '25MB' experiment"; 532 LOG(WARNING) << "low_mem: Part of '25MB' experiment";
533 chromeos::LowMemoryObserver::SetLowMemoryMargin(50); 533 chromeos::LowMemoryObserver::SetLowMemoryMargin(25);
534 } else if (trial->group() == margin_50mb) { 534 } else if (trial->group() == margin_50mb) {
535 LOG(WARNING) << "low_mem: Part of '50MB' experiment"; 535 LOG(WARNING) << "low_mem: Part of '50MB' experiment";
536 chromeos::LowMemoryObserver::SetLowMemoryMargin(50); 536 chromeos::LowMemoryObserver::SetLowMemoryMargin(50);
537 } else if (trial->group() == margin_100mb) { 537 } else if (trial->group() == margin_100mb) {
538 LOG(WARNING) << "low_mem: Part of '100MB' experiment"; 538 LOG(WARNING) << "low_mem: Part of '100MB' experiment";
539 chromeos::LowMemoryObserver::SetLowMemoryMargin(100); 539 chromeos::LowMemoryObserver::SetLowMemoryMargin(100);
540 } else if (trial->group() == margin_200mb) { 540 } else if (trial->group() == margin_200mb) {
541 LOG(WARNING) << "low_mem: Part of '200MB' experiment"; 541 LOG(WARNING) << "low_mem: Part of '200MB' experiment";
542 chromeos::LowMemoryObserver::SetLowMemoryMargin(200); 542 chromeos::LowMemoryObserver::SetLowMemoryMargin(200);
543 } else { 543 } else {
544 LOG(WARNING) << "low_mem: Part of 'default' experiment"; 544 LOG(WARNING) << "low_mem: Part of 'default' experiment";
545 } 545 }
546 } 546 }
547 } 547 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/oom_priority_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698