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

Side by Side Diff: chrome/browser/extensions/extension_warning_set.cc

Issue 469993006: Use a qualified path for chromium_strings, google_chrome_strings, and generated_resources. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 4 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/extensions/extension_warning_set.h" 5 #include "chrome/browser/extensions/extension_warning_set.h"
6 6
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "base/strings/string_util.h" 8 #include "base/strings/string_util.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "chrome/browser/chrome_notification_types.h" 10 #include "chrome/browser/chrome_notification_types.h"
11 #include "chrome/grit/chromium_strings.h"
12 #include "chrome/grit/generated_resources.h"
11 #include "content/public/browser/browser_thread.h" 13 #include "content/public/browser/browser_thread.h"
12 #include "extensions/common/extension.h" 14 #include "extensions/common/extension.h"
13 #include "extensions/common/extension_set.h" 15 #include "extensions/common/extension_set.h"
14 #include "grit/chromium_strings.h"
15 #include "grit/generated_resources.h"
16 #include "net/base/escape.h" 16 #include "net/base/escape.h"
17 #include "ui/base/l10n/l10n_util.h" 17 #include "ui/base/l10n/l10n_util.h"
18 18
19 using content::BrowserThread; 19 using content::BrowserThread;
20 20
21 namespace { 21 namespace {
22 // Prefix for message parameters indicating that the parameter needs to 22 // Prefix for message parameters indicating that the parameter needs to
23 // be translated from an extension id to the extension name. 23 // be translated from an extension id to the extension name.
24 const char kTranslate[] = "TO_TRANSLATE:"; 24 const char kTranslate[] = "TO_TRANSLATE:";
25 const size_t kMaxNumberOfParameters = 4; 25 const size_t kMaxNumberOfParameters = 4;
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 } 228 }
229 } 229 }
230 230
231 bool operator<(const ExtensionWarning& a, const ExtensionWarning& b) { 231 bool operator<(const ExtensionWarning& a, const ExtensionWarning& b) {
232 if (a.extension_id() != b.extension_id()) 232 if (a.extension_id() != b.extension_id())
233 return a.extension_id() < b.extension_id(); 233 return a.extension_id() < b.extension_id();
234 return a.warning_type() < b.warning_type(); 234 return a.warning_type() < b.warning_type();
235 } 235 }
236 236
237 } // namespace extensions 237 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_warning_badge_service.cc ('k') | chrome/browser/extensions/external_install_error.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698