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

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

Issue 10689095: browser: Put simple_message_box.h and chrome_web_contents_view_delegate.h into chrome namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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_error_reporter.h" 5 #include "chrome/browser/extensions/extension_error_reporter.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 return; 49 return;
50 } 50 }
51 51
52 errors_.push_back(message); 52 errors_.push_back(message);
53 53
54 // TODO(aa): Print the error message out somewhere better. I think we are 54 // TODO(aa): Print the error message out somewhere better. I think we are
55 // going to need some sort of 'extension inspector'. 55 // going to need some sort of 'extension inspector'.
56 LOG(ERROR) << "Extension error: " << message; 56 LOG(ERROR) << "Extension error: " << message;
57 57
58 if (enable_noisy_errors_ && be_noisy) { 58 if (enable_noisy_errors_ && be_noisy) {
59 browser::ShowMessageBox(NULL, ASCIIToUTF16("Extension error"), message, 59 chrome::ShowMessageBox(NULL, ASCIIToUTF16("Extension error"), message,
60 browser::MESSAGE_BOX_TYPE_WARNING); 60 chrome::MESSAGE_BOX_TYPE_WARNING);
61 } 61 }
62 } 62 }
63 63
64 const std::vector<string16>* ExtensionErrorReporter::GetErrors() { 64 const std::vector<string16>* ExtensionErrorReporter::GetErrors() {
65 return &errors_; 65 return &errors_;
66 } 66 }
67 67
68 void ExtensionErrorReporter::ClearErrors() { 68 void ExtensionErrorReporter::ClearErrors() {
69 errors_.clear(); 69 errors_.clear();
70 } 70 }
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/extensions/file_manager_util.cc ('k') | chrome/browser/extensions/extensions_startup.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698