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

Unified Diff: chrome/browser/ui/toolbar/toolbar_model.cc

Issue 7464009: Removal of Profile from content part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: browser_context Created 9 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/toolbar/toolbar_model.cc
diff --git a/chrome/browser/ui/toolbar/toolbar_model.cc b/chrome/browser/ui/toolbar/toolbar_model.cc
index 24a1330a1f39ff7dedc47711957be2c58700829f..0f098408cc0e2d6bc7064bf7600f981cf14e73cb 100644
--- a/chrome/browser/ui/toolbar/toolbar_model.cc
+++ b/chrome/browser/ui/toolbar/toolbar_model.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -40,8 +40,9 @@ std::wstring ToolbarModel::GetText() const {
NavigationController* navigation_controller = GetNavigationController();
if (navigation_controller) {
- languages = navigation_controller->profile()->GetPrefs()->GetString(
- prefs::kAcceptLanguages);
+ Profile* profile =
+ static_cast<Profile*>(navigation_controller->browser_context());
+ languages = profile->GetPrefs()->GetString(prefs::kAcceptLanguages);
NavigationEntry* entry = navigation_controller->GetActiveEntry();
if (!navigation_controller->tab_contents()->ShouldDisplayURL()) {
// Explicitly hide the URL for this tab.

Powered by Google App Engine
This is Rietveld 408576698