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

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

Issue 7831051: content: Move collected cookies constrained window to TabContentsWrapper. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Compile failures for everyone\! Created 9 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/browser.h ('k') | chrome/browser/ui/browser_window.h » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/ui/browser.h" 5 #include "chrome/browser/ui/browser.h"
6 6
7 #if defined(OS_WIN) 7 #if defined(OS_WIN)
8 #include <windows.h> 8 #include <windows.h>
9 #include <shellapi.h> 9 #include <shellapi.h>
10 #endif // OS_WIN 10 #endif // OS_WIN
(...skipping 3690 matching lines...) Expand 10 before | Expand all | Expand 10 after
3701 void Browser::ShowRepostFormWarningDialog(TabContents *tab_contents) { 3701 void Browser::ShowRepostFormWarningDialog(TabContents *tab_contents) {
3702 window()->ShowRepostFormWarningDialog(tab_contents); 3702 window()->ShowRepostFormWarningDialog(tab_contents);
3703 } 3703 }
3704 3704
3705 void Browser::ShowContentSettingsPage(ContentSettingsType content_type) { 3705 void Browser::ShowContentSettingsPage(ContentSettingsType content_type) {
3706 ShowOptionsTab( 3706 ShowOptionsTab(
3707 chrome::kContentSettingsExceptionsSubPage + std::string(kHashMark) + 3707 chrome::kContentSettingsExceptionsSubPage + std::string(kHashMark) +
3708 ContentSettingsHandler::ContentSettingsTypeToGroupName(content_type)); 3708 ContentSettingsHandler::ContentSettingsTypeToGroupName(content_type));
3709 } 3709 }
3710 3710
3711 void Browser::ShowCollectedCookiesDialog(TabContents *tab_contents) { 3711 void Browser::ShowCollectedCookiesDialog(TabContentsWrapper* wrapper) {
3712 window()->ShowCollectedCookiesDialog(tab_contents); 3712 window()->ShowCollectedCookiesDialog(wrapper);
3713 } 3713 }
3714 3714
3715 bool Browser::ShouldAddNavigationToHistory( 3715 bool Browser::ShouldAddNavigationToHistory(
3716 const history::HistoryAddPageArgs& add_page_args, 3716 const history::HistoryAddPageArgs& add_page_args,
3717 NavigationType::Type navigation_type) { 3717 NavigationType::Type navigation_type) {
3718 // Don't update history if running as app. 3718 // Don't update history if running as app.
3719 return !IsApplication(); 3719 return !IsApplication();
3720 } 3720 }
3721 3721
3722 void Browser::ContentRestrictionsChanged(TabContents* source) { 3722 void Browser::ContentRestrictionsChanged(TabContents* source) {
(...skipping 1453 matching lines...) Expand 10 before | Expand all | Expand 10 after
5176 } 5176 }
5177 5177
5178 void Browser::ShowSyncSetup() { 5178 void Browser::ShowSyncSetup() {
5179 ProfileSyncService* service = 5179 ProfileSyncService* service =
5180 profile()->GetOriginalProfile()->GetProfileSyncService(); 5180 profile()->GetOriginalProfile()->GetProfileSyncService();
5181 if (service->HasSyncSetupCompleted()) 5181 if (service->HasSyncSetupCompleted())
5182 ShowOptionsTab(chrome::kSyncSetupSubPage); 5182 ShowOptionsTab(chrome::kSyncSetupSubPage);
5183 else 5183 else
5184 service->ShowLoginDialog(); 5184 service->ShowLoginDialog();
5185 } 5185 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser.h ('k') | chrome/browser/ui/browser_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698