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

Unified Diff: chrome/browser/tab_contents/tab_contents.cc

Issue 5529004: Revert 68228 - Disable printing context menus on the print preview page.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/printing/print_preview_tab_controller.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tab_contents/tab_contents.cc
===================================================================
--- chrome/browser/tab_contents/tab_contents.cc (revision 68243)
+++ chrome/browser/tab_contents/tab_contents.cc (working copy)
@@ -85,7 +85,6 @@
#include "chrome/browser/ui/find_bar/find_bar_state.h"
#include "chrome/common/bindings_policy.h"
#include "chrome/common/chrome_switches.h"
-#include "chrome/common/content_restriction.h"
#include "chrome/common/extensions/extension.h"
#include "chrome/common/extensions/extension_action.h"
#include "chrome/common/extensions/extension_icon_set.h"
@@ -2646,14 +2645,9 @@
void TabContents::DidStartLoading() {
SetIsLoading(true, NULL);
- if (delegate()) {
- bool is_print_preview_tab =
- printing::PrintPreviewTabController::IsPrintPreviewTab(this);
- if (content_restrictions_ || is_print_preview_tab) {
- content_restrictions_= is_print_preview_tab ?
- CONTENT_RESTRICTION_PRINT : 0;
- delegate()->ContentRestrictionsChanged(this);
- }
+ if (content_restrictions_) {
+ content_restrictions_= 0;
+ delegate()->ContentRestrictionsChanged(this);
}
// Notify observers about navigation.
« no previous file with comments | « chrome/browser/printing/print_preview_tab_controller.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698