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

Side by Side Diff: chrome/browser/chrome_browser_main_android.cc

Issue 10928193: Add native-side unit test for Android NetworkChangeNotifier (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebasing Created 8 years, 3 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
« no previous file with comments | « no previous file | content/shell/shell_browser_main_parts.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/chrome_browser_main_android.h" 5 #include "chrome/browser/chrome_browser_main_android.h"
6 6
7 #include "chrome/common/chrome_switches.h" 7 #include "chrome/common/chrome_switches.h"
8 #include "content/public/common/main_function_params.h" 8 #include "content/public/common/main_function_params.h"
9 #include "net/android/network_change_notifier_factory.h" 9 #include "net/android/network_change_notifier_factory_android.h"
10 #include "net/base/network_change_notifier.h" 10 #include "net/base/network_change_notifier.h"
11 11
12 ChromeBrowserMainPartsAndroid::ChromeBrowserMainPartsAndroid( 12 ChromeBrowserMainPartsAndroid::ChromeBrowserMainPartsAndroid(
13 const content::MainFunctionParams& parameters) 13 const content::MainFunctionParams& parameters)
14 : ChromeBrowserMainParts(parameters) { 14 : ChromeBrowserMainParts(parameters) {
15 } 15 }
16 16
17 ChromeBrowserMainPartsAndroid::~ChromeBrowserMainPartsAndroid() { 17 ChromeBrowserMainPartsAndroid::~ChromeBrowserMainPartsAndroid() {
18 } 18 }
19 19
20 void ChromeBrowserMainPartsAndroid::PreEarlyInitialization() { 20 void ChromeBrowserMainPartsAndroid::PreEarlyInitialization() {
21 net::NetworkChangeNotifier::SetFactory( 21 net::NetworkChangeNotifier::SetFactory(
22 new net::android::NetworkChangeNotifierFactory()); 22 new net::NetworkChangeNotifierFactoryAndroid());
23 23
24 // Chrome on Android does not use default MessageLoop. It has its own 24 // Chrome on Android does not use default MessageLoop. It has its own
25 // Android specific MessageLoop. 25 // Android specific MessageLoop.
26 DCHECK(!main_message_loop_.get()); 26 DCHECK(!main_message_loop_.get());
27 main_message_loop_.reset(new MessageLoop(MessageLoop::TYPE_UI)); 27 main_message_loop_.reset(new MessageLoop(MessageLoop::TYPE_UI));
28 MessageLoopForUI::current()->Start(); 28 MessageLoopForUI::current()->Start();
29 29
30 ChromeBrowserMainParts::PreEarlyInitialization(); 30 ChromeBrowserMainParts::PreEarlyInitialization();
31 } 31 }
32 32
33 void ChromeBrowserMainPartsAndroid::ShowMissingLocaleMessageBox() { 33 void ChromeBrowserMainPartsAndroid::ShowMissingLocaleMessageBox() {
34 NOTREACHED(); 34 NOTREACHED();
35 } 35 }
36 36
37 void RecordBreakpadStatusUMA(MetricsService* metrics) { 37 void RecordBreakpadStatusUMA(MetricsService* metrics) {
38 // TODO: crbug.com/139023 38 // TODO: crbug.com/139023
39 NOTIMPLEMENTED(); 39 NOTIMPLEMENTED();
40 } 40 }
41 41
42 void WarnAboutMinimumSystemRequirements() { 42 void WarnAboutMinimumSystemRequirements() {
43 } 43 }
OLDNEW
« no previous file with comments | « no previous file | content/shell/shell_browser_main_parts.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698