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

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

Issue 9224002: Make WebUI objects not derive from WebUI. WebUI objects own the controller. This is the ownership... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync to head to clear linux_chromeos browsertest failures Created 8 years, 11 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/chromeos/internet_options_handler.h" 5 #include "chrome/browser/ui/webui/options/chromeos/internet_options_handler.h"
6 6
7 #include <ctype.h> 7 #include <ctype.h>
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 26 matching lines...) Expand all
37 #include "chrome/browser/profiles/profile.h" 37 #include "chrome/browser/profiles/profile.h"
38 #include "chrome/browser/ui/browser.h" 38 #include "chrome/browser/ui/browser.h"
39 #include "chrome/browser/ui/browser_list.h" 39 #include "chrome/browser/ui/browser_list.h"
40 #include "chrome/browser/ui/browser_window.h" 40 #include "chrome/browser/ui/browser_window.h"
41 #include "chrome/browser/ui/dialog_style.h" 41 #include "chrome/browser/ui/dialog_style.h"
42 #include "chrome/browser/ui/views/window.h" 42 #include "chrome/browser/ui/views/window.h"
43 #include "chrome/browser/ui/webui/web_ui_util.h" 43 #include "chrome/browser/ui/webui/web_ui_util.h"
44 #include "chrome/common/chrome_notification_types.h" 44 #include "chrome/common/chrome_notification_types.h"
45 #include "chrome/common/chrome_switches.h" 45 #include "chrome/common/chrome_switches.h"
46 #include "chrome/common/time_format.h" 46 #include "chrome/common/time_format.h"
47 #include "content/browser/webui/web_ui.h"
47 #include "content/public/browser/notification_service.h" 48 #include "content/public/browser/notification_service.h"
48 #include "grit/chromium_strings.h" 49 #include "grit/chromium_strings.h"
49 #include "grit/generated_resources.h" 50 #include "grit/generated_resources.h"
50 #include "grit/locale_settings.h" 51 #include "grit/locale_settings.h"
51 #include "grit/theme_resources.h" 52 #include "grit/theme_resources.h"
52 #include "third_party/skia/include/core/SkBitmap.h" 53 #include "third_party/skia/include/core/SkBitmap.h"
53 #include "ui/base/l10n/l10n_util.h" 54 #include "ui/base/l10n/l10n_util.h"
54 #include "ui/base/resource/resource_bundle.h" 55 #include "ui/base/resource/resource_bundle.h"
55 #include "ui/views/widget/widget.h" 56 #include "ui/views/widget/widget.h"
56 57
(...skipping 1330 matching lines...) Expand 10 before | Expand all | Expand 10 after
1387 value_dict->Set("value", value); 1388 value_dict->Set("value", value);
1388 const base::Value* default_value = ui_data.default_value(); 1389 const base::Value* default_value = ui_data.default_value();
1389 if (default_value) 1390 if (default_value)
1390 value_dict->Set("default", default_value->DeepCopy()); 1391 value_dict->Set("default", default_value->DeepCopy());
1391 if (ui_data.managed()) 1392 if (ui_data.managed())
1392 value_dict->SetString("controlledBy", "policy"); 1393 value_dict->SetString("controlledBy", "policy");
1393 else if (ui_data.recommended()) 1394 else if (ui_data.recommended())
1394 value_dict->SetString("controlledBy", "recommended"); 1395 value_dict->SetString("controlledBy", "recommended");
1395 settings->Set(key, value_dict); 1396 settings->Set(key, value_dict);
1396 } 1397 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698