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

Side by Side Diff: chrome/browser/page_load_metrics/metrics_web_contents_observer.cc

Issue 2952343004: Adding previews information to PLM UKM (Closed)
Patch Set: rebase Created 3 years, 5 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/page_load_metrics/metrics_web_contents_observer.h" 5 #include "chrome/browser/page_load_metrics/metrics_web_contents_observer.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <ostream> 8 #include <ostream>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 647 matching lines...) Expand 10 before | Expand all | Expand 10 after
658 if (observer_) { 658 if (observer_) {
659 observer_->RemoveTestingObserver(this); 659 observer_->RemoveTestingObserver(this);
660 observer_ = nullptr; 660 observer_ = nullptr;
661 } 661 }
662 } 662 }
663 663
664 void MetricsWebContentsObserver::TestingObserver::OnGoingAway() { 664 void MetricsWebContentsObserver::TestingObserver::OnGoingAway() {
665 observer_ = nullptr; 665 observer_ = nullptr;
666 } 666 }
667 667
668 void MetricsWebContentsObserver::BroadcastEventToObservers(
669 const void* const event_key) {
670 if (committed_load_)
671 committed_load_->BroadcastEventToObservers(event_key);
672 }
673
668 } // namespace page_load_metrics 674 } // namespace page_load_metrics
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698