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

Side by Side Diff: chrome/browser/google/chrome_google_url_tracker_client.cc

Issue 816403003: Make callers of CommandLine use it via the base:: namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 6 years 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/google/chrome_google_url_tracker_client.h" 5 #include "chrome/browser/google/chrome_google_url_tracker_client.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "chrome/browser/chrome_notification_types.h" 8 #include "chrome/browser/chrome_notification_types.h"
9 #include "chrome/browser/google/google_url_tracker_navigation_helper_impl.h" 9 #include "chrome/browser/google/google_url_tracker_navigation_helper_impl.h"
10 #include "chrome/browser/infobars/infobar_service.h" 10 #include "chrome/browser/infobars/infobar_service.h"
(...skipping 27 matching lines...) Expand all
38 } 38 }
39 39
40 bool ChromeGoogleURLTrackerClient::IsListeningForNavigationStart() { 40 bool ChromeGoogleURLTrackerClient::IsListeningForNavigationStart() {
41 return registrar_.IsRegistered( 41 return registrar_.IsRegistered(
42 this, 42 this,
43 content::NOTIFICATION_NAV_ENTRY_PENDING, 43 content::NOTIFICATION_NAV_ENTRY_PENDING,
44 content::NotificationService::AllBrowserContextsAndSources()); 44 content::NotificationService::AllBrowserContextsAndSources());
45 } 45 }
46 46
47 bool ChromeGoogleURLTrackerClient::IsBackgroundNetworkingEnabled() { 47 bool ChromeGoogleURLTrackerClient::IsBackgroundNetworkingEnabled() {
48 return !CommandLine::ForCurrentProcess()->HasSwitch( 48 return !base::CommandLine::ForCurrentProcess()->HasSwitch(
49 switches::kDisableBackgroundNetworking); 49 switches::kDisableBackgroundNetworking);
50 } 50 }
51 51
52 PrefService* ChromeGoogleURLTrackerClient::GetPrefs() { 52 PrefService* ChromeGoogleURLTrackerClient::GetPrefs() {
53 return profile_->GetPrefs(); 53 return profile_->GetPrefs();
54 } 54 }
55 55
56 net::URLRequestContextGetter* 56 net::URLRequestContextGetter*
57 ChromeGoogleURLTrackerClient::GetRequestContext() { 57 ChromeGoogleURLTrackerClient::GetRequestContext() {
58 return profile_->GetRequestContext(); 58 return profile_->GetRequestContext();
(...skipping 12 matching lines...) Expand all
71 // some notifications, e.g. navigations in bubbles/balloons etc. 71 // some notifications, e.g. navigations in bubbles/balloons etc.
72 if (infobar_service) { 72 if (infobar_service) {
73 google_url_tracker()->OnNavigationPending( 73 google_url_tracker()->OnNavigationPending(
74 scoped_ptr<GoogleURLTrackerNavigationHelper>( 74 scoped_ptr<GoogleURLTrackerNavigationHelper>(
75 new GoogleURLTrackerNavigationHelperImpl( 75 new GoogleURLTrackerNavigationHelperImpl(
76 controller->GetWebContents(), google_url_tracker())), 76 controller->GetWebContents(), google_url_tracker())),
77 infobar_service, 77 infobar_service,
78 controller->GetPendingEntry()->GetUniqueID()); 78 controller->GetPendingEntry()->GetUniqueID());
79 } 79 }
80 } 80 }
OLDNEW
« no previous file with comments | « chrome/browser/fullscreen_mac.mm ('k') | chrome/browser/guest_view/web_view/context_menu_content_type_web_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698