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

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

Issue 113169: Move win_util.h from common to app. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 7 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/download/save_package.cc ('k') | chrome/browser/external_tab_container.cc » ('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) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 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_error_reporter.h" 5 #include "chrome/browser/extensions/extension_error_reporter.h"
6 6
7 #if defined(OS_WIN)
8 #include "app/win_util.h"
9 #endif
7 #include "base/string_util.h" 10 #include "base/string_util.h"
8 11
9 #if defined(OS_WIN)
10 #include "chrome/common/win_util.h"
11 #endif
12
13 // No AddRef required when using ExtensionErrorReporter with RunnableMethod. 12 // No AddRef required when using ExtensionErrorReporter with RunnableMethod.
14 // This is okay since the ExtensionErrorReporter is a singleton that lives until 13 // This is okay since the ExtensionErrorReporter is a singleton that lives until
15 // the end of the process. 14 // the end of the process.
16 template <> struct RunnableMethodTraits<ExtensionErrorReporter> { 15 template <> struct RunnableMethodTraits<ExtensionErrorReporter> {
17 static void RetainCallee(ExtensionErrorReporter*) {} 16 static void RetainCallee(ExtensionErrorReporter*) {}
18 static void ReleaseCallee(ExtensionErrorReporter*) {} 17 static void ReleaseCallee(ExtensionErrorReporter*) {}
19 }; 18 };
20 19
21 ExtensionErrorReporter* ExtensionErrorReporter::instance_ = NULL; 20 ExtensionErrorReporter* ExtensionErrorReporter::instance_ = NULL;
22 21
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 } 63 }
65 } 64 }
66 65
67 const std::vector<std::string>* ExtensionErrorReporter::GetErrors() { 66 const std::vector<std::string>* ExtensionErrorReporter::GetErrors() {
68 return &errors_; 67 return &errors_;
69 } 68 }
70 69
71 void ExtensionErrorReporter::ClearErrors() { 70 void ExtensionErrorReporter::ClearErrors() {
72 errors_.clear(); 71 errors_.clear();
73 } 72 }
OLDNEW
« no previous file with comments | « chrome/browser/download/save_package.cc ('k') | chrome/browser/external_tab_container.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698