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

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

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 years, 1 month 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 | « chrome/browser/memory_purger.cc ('k') | chrome/browser/metrics/histogram_synchronizer.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/field_trial_synchronizer.h" 5 #include "chrome/browser/metrics/field_trial_synchronizer.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/threading/thread.h" 8 #include "base/threading/thread.h"
9 #include "chrome/common/chrome_constants.h" 9 #include "chrome/common/chrome_constants.h"
10 #include "chrome/common/render_messages.h" 10 #include "chrome/common/render_messages.h"
11 #include "content/browser/renderer_host/render_process_host.h" 11 #include "content/browser/renderer_host/render_process_host.h"
12 #include "content/public/browser/browser_thread.h" 12 #include "content/public/browser/browser_thread.h"
13 13
14 using content::BrowserThread;
15
14 FieldTrialSynchronizer::FieldTrialSynchronizer() { 16 FieldTrialSynchronizer::FieldTrialSynchronizer() {
15 DCHECK(field_trial_synchronizer_ == NULL); 17 DCHECK(field_trial_synchronizer_ == NULL);
16 field_trial_synchronizer_ = this; 18 field_trial_synchronizer_ = this;
17 base::FieldTrialList::AddObserver(this); 19 base::FieldTrialList::AddObserver(this);
18 } 20 }
19 21
20 FieldTrialSynchronizer::~FieldTrialSynchronizer() { 22 FieldTrialSynchronizer::~FieldTrialSynchronizer() {
21 base::FieldTrialList::RemoveObserver(this); 23 base::FieldTrialList::RemoveObserver(this);
22 field_trial_synchronizer_ = NULL; 24 field_trial_synchronizer_ = NULL;
23 } 25 }
(...skipping 19 matching lines...) Expand all
43 BrowserThread::UI, FROM_HERE, 45 BrowserThread::UI, FROM_HERE,
44 NewRunnableMethod(this, 46 NewRunnableMethod(this,
45 &FieldTrialSynchronizer::NotifyAllRenderers, 47 &FieldTrialSynchronizer::NotifyAllRenderers,
46 field_trial_name, 48 field_trial_name,
47 group_name)); 49 group_name));
48 } 50 }
49 51
50 // static 52 // static
51 FieldTrialSynchronizer* 53 FieldTrialSynchronizer*
52 FieldTrialSynchronizer::field_trial_synchronizer_ = NULL; 54 FieldTrialSynchronizer::field_trial_synchronizer_ = NULL;
OLDNEW
« no previous file with comments | « chrome/browser/memory_purger.cc ('k') | chrome/browser/metrics/histogram_synchronizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698