OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 <vector> | 7 #include <vector> |
8 | 8 |
9 #include "app/l10n_util.h" | 9 #include "app/l10n_util.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/string_util.h" | 11 #include "base/string_util.h" |
12 #include "base/utf_string_conversions.h" | 12 #include "base/utf_string_conversions.h" |
13 #include "chrome/browser/browser_process.h" | 13 #include "chrome/browser/browser_process.h" |
14 #include "chrome/browser/pref_service.h" | 14 #include "chrome/browser/prefs/pref_service.h" |
15 #include "chrome/browser/profile.h" | 15 #include "chrome/browser/profile.h" |
16 #include "chrome/browser/search_engines/template_url.h" | 16 #include "chrome/browser/search_engines/template_url.h" |
17 #include "chrome/browser/tab_contents/infobar_delegate.h" | 17 #include "chrome/browser/tab_contents/infobar_delegate.h" |
18 #include "chrome/browser/tab_contents/navigation_controller.h" | 18 #include "chrome/browser/tab_contents/navigation_controller.h" |
19 #include "chrome/browser/tab_contents/tab_contents.h" | 19 #include "chrome/browser/tab_contents/tab_contents.h" |
20 #include "chrome/common/net/url_fetcher_protect.h" | 20 #include "chrome/common/net/url_fetcher_protect.h" |
21 #include "chrome/common/notification_service.h" | 21 #include "chrome/common/notification_service.h" |
22 #include "chrome/common/pref_names.h" | 22 #include "chrome/common/pref_names.h" |
23 #include "grit/generated_resources.h" | 23 #include "grit/generated_resources.h" |
24 #include "net/base/load_flags.h" | 24 #include "net/base/load_flags.h" |
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
344 return; | 344 return; |
345 DCHECK(!fetched_google_url_.is_empty()); | 345 DCHECK(!fetched_google_url_.is_empty()); |
346 DCHECK(infobar_factory_.get()); | 346 DCHECK(infobar_factory_.get()); |
347 | 347 |
348 infobar_ = infobar_factory_->CreateInfoBar(tab_contents, | 348 infobar_ = infobar_factory_->CreateInfoBar(tab_contents, |
349 this, | 349 this, |
350 fetched_google_url_); | 350 fetched_google_url_); |
351 g_browser_process->local_state()->SetString(prefs::kLastPromptedGoogleURL, | 351 g_browser_process->local_state()->SetString(prefs::kLastPromptedGoogleURL, |
352 fetched_google_url_.spec()); | 352 fetched_google_url_.spec()); |
353 } | 353 } |
OLD | NEW |