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

Side by Side Diff: chromecast/browser/cast_browser_process.cc

Issue 1298473004: [Chromecast] Moves persistent UMA client ID handling to common code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: moves android dep to correct target Created 5 years, 4 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 "chromecast/browser/cast_browser_process.h" 5 #include "chromecast/browser/cast_browser_process.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/prefs/pref_service.h" 8 #include "base/prefs/pref_service.h"
9 #include "chromecast/base/metrics/cast_metrics_helper.h" 9 #include "chromecast/base/metrics/cast_metrics_helper.h"
10 #include "chromecast/browser/cast_browser_context.h" 10 #include "chromecast/browser/cast_browser_context.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 pref_service_->CommitPendingWrite(); 47 pref_service_->CommitPendingWrite();
48 g_instance = NULL; 48 g_instance = NULL;
49 } 49 }
50 50
51 void CastBrowserProcess::SetBrowserContext( 51 void CastBrowserProcess::SetBrowserContext(
52 scoped_ptr<CastBrowserContext> browser_context) { 52 scoped_ptr<CastBrowserContext> browser_context) {
53 DCHECK(!browser_context_); 53 DCHECK(!browser_context_);
54 browser_context_.swap(browser_context); 54 browser_context_.swap(browser_context);
55 } 55 }
56 56
57 void CastBrowserProcess::SetCastContentBrowserClient(
58 CastContentBrowserClient* cast_content_browser_client) {
59 DCHECK(!cast_content_browser_client_);
60 cast_content_browser_client_ = cast_content_browser_client;
61 }
62
57 void CastBrowserProcess::SetCastService(scoped_ptr<CastService> cast_service) { 63 void CastBrowserProcess::SetCastService(scoped_ptr<CastService> cast_service) {
58 DCHECK(!cast_service_); 64 DCHECK(!cast_service_);
59 cast_service_.swap(cast_service); 65 cast_service_.swap(cast_service);
60 } 66 }
61 67
62 #if defined(USE_AURA) 68 #if defined(USE_AURA)
63 void CastBrowserProcess::SetCastScreen(scoped_ptr<CastScreen> cast_screen) { 69 void CastBrowserProcess::SetCastScreen(scoped_ptr<CastScreen> cast_screen) {
64 DCHECK(!cast_screen_); 70 DCHECK(!cast_screen_);
65 cast_screen_ = cast_screen.Pass(); 71 cast_screen_ = cast_screen.Pass();
66 } 72 }
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 connectivity_checker_.swap(connectivity_checker); 115 connectivity_checker_.swap(connectivity_checker);
110 } 116 }
111 117
112 void CastBrowserProcess::SetNetLog(net::NetLog* net_log) { 118 void CastBrowserProcess::SetNetLog(net::NetLog* net_log) {
113 DCHECK(!net_log_); 119 DCHECK(!net_log_);
114 net_log_ = net_log; 120 net_log_ = net_log;
115 } 121 }
116 122
117 } // namespace shell 123 } // namespace shell
118 } // namespace chromecast 124 } // namespace chromecast
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698