Chromium Code Reviews

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

Issue 20378: Reduce the amount of included header files. Vast change like in "Oh God! This... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_url_tracker.h" 5 #include "chrome/browser/google_url_tracker.h"
6 6
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/string_util.h" 8 #include "base/string_util.h"
9 #include "chrome/browser/browser_process.h" 9 #include "chrome/browser/browser_process.h"
10 #include "chrome/browser/profile.h" 10 #include "chrome/browser/profile.h"
11 #include "chrome/common/notification_service.h" 11 #include "chrome/common/notification_service.h"
12 #include "chrome/common/pref_names.h" 12 #include "chrome/common/pref_names.h"
13 #include "chrome/common/pref_service.h" 13 #include "chrome/common/pref_service.h"
14 #include "net/base/load_flags.h" 14 #include "net/base/load_flags.h"
15 #include "net/url_request/url_request_status.h"
15 16
16 const char GoogleURLTracker::kDefaultGoogleHomepage[] = 17 const char GoogleURLTracker::kDefaultGoogleHomepage[] =
17 "http://www.google.com/"; 18 "http://www.google.com/";
18 19
19 GoogleURLTracker::GoogleURLTracker() 20 GoogleURLTracker::GoogleURLTracker()
20 : google_url_(WideToUTF8(g_browser_process->local_state()->GetString( 21 : google_url_(WideToUTF8(g_browser_process->local_state()->GetString(
21 prefs::kLastKnownGoogleURL))), 22 prefs::kLastKnownGoogleURL))),
22 ALLOW_THIS_IN_INITIALIZER_LIST(fetcher_factory_(this)), 23 ALLOW_THIS_IN_INITIALIZER_LIST(fetcher_factory_(this)),
23 in_startup_sleep_(true), 24 in_startup_sleep_(true),
24 already_fetched_(false), 25 already_fetched_(false),
(...skipping 137 matching lines...)
162 } 163 }
163 } 164 }
164 165
165 void GoogleURLTracker::Observe(NotificationType type, 166 void GoogleURLTracker::Observe(NotificationType type,
166 const NotificationSource& source, 167 const NotificationSource& source,
167 const NotificationDetails& details) { 168 const NotificationDetails& details) {
168 DCHECK_EQ(NotificationType::DEFAULT_REQUEST_CONTEXT_AVAILABLE, type.value); 169 DCHECK_EQ(NotificationType::DEFAULT_REQUEST_CONTEXT_AVAILABLE, type.value);
169 request_context_available_ = true; 170 request_context_available_ = true;
170 StartFetchIfDesirable(); 171 StartFetchIfDesirable();
171 } 172 }
OLDNEW

Powered by Google App Engine