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

Side by Side Diff: chrome/browser/metrics/chrome_metrics_service_client.cc

Issue 1874483002: Remove "from all browsers" memory details mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rip out ProcessInfoSnapshot Created 4 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/metrics/chrome_metrics_service_client.h" 5 #include "chrome/browser/metrics/chrome_metrics_service_client.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after
547 // then call OnHistogramSynchronizationDone to continue processing. 547 // then call OnHistogramSynchronizationDone to continue processing.
548 DCHECK(!waiting_for_collect_final_metrics_step_); 548 DCHECK(!waiting_for_collect_final_metrics_step_);
549 waiting_for_collect_final_metrics_step_ = true; 549 waiting_for_collect_final_metrics_step_ = true;
550 550
551 base::Closure callback = 551 base::Closure callback =
552 base::Bind(&ChromeMetricsServiceClient::OnMemoryDetailCollectionDone, 552 base::Bind(&ChromeMetricsServiceClient::OnMemoryDetailCollectionDone,
553 weak_ptr_factory_.GetWeakPtr()); 553 weak_ptr_factory_.GetWeakPtr());
554 554
555 scoped_refptr<MetricsMemoryDetails> details( 555 scoped_refptr<MetricsMemoryDetails> details(
556 new MetricsMemoryDetails(callback, &memory_growth_tracker_)); 556 new MetricsMemoryDetails(callback, &memory_growth_tracker_));
557 details->StartFetch(MemoryDetails::FROM_CHROME_ONLY); 557 details->StartFetch();
558 } 558 }
559 559
560 void ChromeMetricsServiceClient::OnMemoryDetailCollectionDone() { 560 void ChromeMetricsServiceClient::OnMemoryDetailCollectionDone() {
561 DCHECK(thread_checker_.CalledOnValidThread()); 561 DCHECK(thread_checker_.CalledOnValidThread());
562 562
563 // This function should only be called as the callback from an ansynchronous 563 // This function should only be called as the callback from an ansynchronous
564 // step. 564 // step.
565 DCHECK(waiting_for_collect_final_metrics_step_); 565 DCHECK(waiting_for_collect_final_metrics_step_);
566 566
567 // Create a callback_task for OnHistogramSynchronizationDone. 567 // Create a callback_task for OnHistogramSynchronizationDone.
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
677 break; 677 break;
678 678
679 default: 679 default:
680 NOTREACHED(); 680 NOTREACHED();
681 } 681 }
682 } 682 }
683 683
684 void ChromeMetricsServiceClient::OnURLOpenedFromOmnibox(OmniboxLog* log) { 684 void ChromeMetricsServiceClient::OnURLOpenedFromOmnibox(OmniboxLog* log) {
685 metrics_service_->OnApplicationNotIdle(); 685 metrics_service_->OnApplicationNotIdle();
686 } 686 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698