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

Side by Side Diff: chrome/browser/ui/webui/options/certificate_manager_handler.cc

Issue 25849004: Clean up unused constant globals (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 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/ui/webui/options/certificate_manager_handler.h" 5 #include "chrome/browser/ui/webui/options/certificate_manager_handler.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <map> 8 #include <map>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 using content::BrowserThread; 42 using content::BrowserThread;
43 43
44 namespace { 44 namespace {
45 45
46 static const char kKeyId[] = "id"; 46 static const char kKeyId[] = "id";
47 static const char kSubNodesId[] = "subnodes"; 47 static const char kSubNodesId[] = "subnodes";
48 static const char kNameId[] = "name"; 48 static const char kNameId[] = "name";
49 static const char kReadOnlyId[] = "readonly"; 49 static const char kReadOnlyId[] = "readonly";
50 static const char kUntrustedId[] = "untrusted"; 50 static const char kUntrustedId[] = "untrusted";
51 static const char kExtractableId[] = "extractable"; 51 static const char kExtractableId[] = "extractable";
52 static const char kSecurityDeviceId[] = "device";
53 static const char kErrorId[] = "error"; 52 static const char kErrorId[] = "error";
54 static const char kPolicyTrustedId[] = "policy"; 53 static const char kPolicyTrustedId[] = "policy";
55 54
56 // Enumeration of different callers of SelectFile. (Start counting at 1 so 55 // Enumeration of different callers of SelectFile. (Start counting at 1 so
57 // if SelectFile is accidentally called with params=NULL it won't match any.) 56 // if SelectFile is accidentally called with params=NULL it won't match any.)
58 enum { 57 enum {
59 EXPORT_PERSONAL_FILE_SELECTED = 1, 58 EXPORT_PERSONAL_FILE_SELECTED = 1,
60 IMPORT_PERSONAL_FILE_SELECTED, 59 IMPORT_PERSONAL_FILE_SELECTED,
61 IMPORT_SERVER_FILE_SELECTED, 60 IMPORT_SERVER_FILE_SELECTED,
62 IMPORT_CA_FILE_SELECTED, 61 IMPORT_CA_FILE_SELECTED,
(...skipping 1055 matching lines...) Expand 10 before | Expand all | Expand 10 after
1118 web_ui()->CallJavascriptFunction("CertificateManager.onCheckTpmTokenReady", 1117 web_ui()->CallJavascriptFunction("CertificateManager.onCheckTpmTokenReady",
1119 ready); 1118 ready);
1120 } 1119 }
1121 #endif 1120 #endif
1122 1121
1123 gfx::NativeWindow CertificateManagerHandler::GetParentWindow() const { 1122 gfx::NativeWindow CertificateManagerHandler::GetParentWindow() const {
1124 return web_ui()->GetWebContents()->GetView()->GetTopLevelNativeWindow(); 1123 return web_ui()->GetWebContents()->GetView()->GetTopLevelNativeWindow();
1125 } 1124 }
1126 1125
1127 } // namespace options 1126 } // namespace options
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698