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

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

Issue 3299020: Remove vestigial cookie/web app permissions prompting UI now that the async U... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 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
OLDNEW
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/content_exceptions_table_model.h" 5 #include "chrome/browser/content_exceptions_table_model.h"
6 6
7 #include "app/l10n_util.h" 7 #include "app/l10n_util.h"
8 #include "app/table_model_observer.h" 8 #include "app/table_model_observer.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "chrome/browser/host_content_settings_map.h" 10 #include "chrome/browser/host_content_settings_map.h"
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 switch (column_id) { 98 switch (column_id) {
99 case IDS_EXCEPTIONS_PATTERN_HEADER: 99 case IDS_EXCEPTIONS_PATTERN_HEADER:
100 return UTF8ToWide(entry.first.AsString()); 100 return UTF8ToWide(entry.first.AsString());
101 101
102 case IDS_EXCEPTIONS_ACTION_HEADER: 102 case IDS_EXCEPTIONS_ACTION_HEADER:
103 switch (entry.second) { 103 switch (entry.second) {
104 case CONTENT_SETTING_ALLOW: 104 case CONTENT_SETTING_ALLOW:
105 return l10n_util::GetString(IDS_EXCEPTIONS_ALLOW_BUTTON); 105 return l10n_util::GetString(IDS_EXCEPTIONS_ALLOW_BUTTON);
106 case CONTENT_SETTING_BLOCK: 106 case CONTENT_SETTING_BLOCK:
107 return l10n_util::GetString(IDS_EXCEPTIONS_BLOCK_BUTTON); 107 return l10n_util::GetString(IDS_EXCEPTIONS_BLOCK_BUTTON);
108 case CONTENT_SETTING_ASK:
109 return l10n_util::GetString(IDS_EXCEPTIONS_ASK_BUTTON);
110 case CONTENT_SETTING_SESSION_ONLY: 108 case CONTENT_SETTING_SESSION_ONLY:
111 return l10n_util::GetString(IDS_EXCEPTIONS_SESSION_ONLY_BUTTON); 109 return l10n_util::GetString(IDS_EXCEPTIONS_SESSION_ONLY_BUTTON);
112 default: 110 default:
113 NOTREACHED(); 111 NOTREACHED();
114 } 112 }
115 break; 113 break;
116 114
117 default: 115 default:
118 NOTREACHED(); 116 NOTREACHED();
119 } 117 }
120 118
121 return std::wstring(); 119 return std::wstring();
122 } 120 }
123 121
124 void ContentExceptionsTableModel::SetObserver(TableModelObserver* observer) { 122 void ContentExceptionsTableModel::SetObserver(TableModelObserver* observer) {
125 observer_ = observer; 123 observer_ = observer;
126 } 124 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698