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

Side by Side Diff: third_party/WebKit/Source/core/frame/NavigatorLanguage.cpp

Issue 2884493002: Bindings: Require [CachedAttribute] method to be const (Closed)
Patch Set: update binding test expectations Created 3 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "core/frame/NavigatorLanguage.h" 5 #include "core/frame/NavigatorLanguage.h"
6 6
7 #include "platform/Language.h" 7 #include "platform/Language.h"
8 8
9 namespace blink { 9 namespace blink {
10 10
11 NavigatorLanguage::NavigatorLanguage() : languages_changed_(true) {} 11 NavigatorLanguage::NavigatorLanguage() {}
12 12
13 AtomicString NavigatorLanguage::language() { 13 AtomicString NavigatorLanguage::language() {
14 return DefaultLanguage(); 14 return DefaultLanguage();
15 } 15 }
16 16
17 bool NavigatorLanguage::hasLanguagesChanged() { 17 bool NavigatorLanguage::hasLanguagesChanged() const {
18 if (!languages_changed_) 18 return languages_changed_;
19 return false;
20
21 languages_changed_ = false;
22 return true;
23 } 19 }
24 20
25 void NavigatorLanguage::SetLanguagesChanged() { 21 void NavigatorLanguage::SetLanguagesChanged() {
26 languages_changed_ = true; 22 languages_changed_ = true;
27 } 23 }
28 24
29 } // namespace blink 25 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698